mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Fix IconPicker widget if value is null with PHP 8 (#6972)
This commit is contained in:
parent
2f24ad5dd0
commit
76a30f934c
@ -50,7 +50,7 @@ class IconPicker extends Select2
|
||||
*/
|
||||
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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user