Skip to content

Commit

Permalink
cast return value to string (#469)
Browse files Browse the repository at this point in the history
With PHP 8.1, there is this error on that line for htmlentities:
passing null to parameter of type string is deprecated

This should fix it

Fixes: #468
  • Loading branch information
tenzap authored Jun 13, 2022
1 parent a46b7dc commit 6bb7a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/views/main/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
$db_name_human = get_database_property($this->db->platform())['human'];
echo $db_name_human, ' ', $this->db->version(), ' (', $this->db->platform(), ')'; ?>`
<br /><b>* Gammu version:</b>
`<?php echo filter_data(htmlentities($this->Kalkun_model->get_gammu_info('gammu_version')->row('Client')), ENT_QUOTES); ?>`
`<?php echo filter_data(htmlentities(strval($this->Kalkun_model->get_gammu_info('gammu_version')->row('Client'))), ENT_QUOTES); ?>`
<br /><b>* Gammu DB schema:</b>
`<?php echo filter_data(htmlentities($this->Kalkun_model->get_gammu_info('db_version')->row('Version')), ENT_QUOTES); ?>`
<br /><b>* Browser:</b>
Expand Down

0 comments on commit 6bb7a4a

Please sign in to comment.