Skip to content

Commit

Permalink
Fix IconPicker widget if value is null with PHP 8 (#6972)
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-farre committed Apr 29, 2024
1 parent 2f24ad5 commit 76a30f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protected/humhub/modules/ui/form/widgets/IconPicker.php
Expand Up @@ -50,7 +50,7 @@ public function init()
*/
public function run()
{
$this->value = (strpos($this->value, 'fa-') === 0)
$this->value = (strpos((string)$this->value, 'fa-') === 0)
? substr($this->value, 3, strlen($this->value))
: $this->value;

Expand Down

0 comments on commit 76a30f9

Please sign in to comment.