Skip to content

Commit

Permalink
fix deprecation error that led to hidden HTTP 500 error
Browse files Browse the repository at this point in the history
Browser reported HTTP error 500 when doing a search with the search bar.

Kalkun log reported:
Severity: error --> Exception: rawurldecode(): Passing null to parameter #1 ()
of type string is deprecated
application/views/js_init/message/js_conversation.php 250
  • Loading branch information
tenzap committed Dec 21, 2024
1 parent 730f17f commit 1b1490c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/views/js_init/message/js_conversation.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
break;
default:
var type = 'reply';
var phone = '<?php echo rawurldecode($this->uri->segment(5));?>';
var phone = '<?php echo rawurldecode(strval($this->uri->segment(5)));?>';
if (phone == null || phone == '')
var phone = $(this).parents('div:eq(1)').children().children('input.item_number').val();
compose_message('reply', false, '#message', phone);
Expand Down

0 comments on commit 1b1490c

Please sign in to comment.