diff --git a/protected/humhub/modules/ui/form/widgets/IconPicker.php b/protected/humhub/modules/ui/form/widgets/IconPicker.php index fcdea09c8b..f91a597f54 100644 --- a/protected/humhub/modules/ui/form/widgets/IconPicker.php +++ b/protected/humhub/modules/ui/form/widgets/IconPicker.php @@ -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;