mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Use substr instead of str_starts_with to avoid PHP 8.0
This commit is contained in:
parent
3e83c5bb1c
commit
4256b589e7
@ -560,7 +560,7 @@ class Select extends Etemplate\Widget
|
||||
{
|
||||
$widget = $widget_type;
|
||||
$widget_type = $widget->attrs['type'] ? $widget->attrs['type'] : $widget->type;
|
||||
if(str_starts_with($widget_type, 'et2-'))
|
||||
if(substr($widget_type, 0, 4) == 'et2-')
|
||||
{
|
||||
$widget_type = str_replace('et2-', '', $widget_type);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user