forked from extern/egroupware
fix PHP 8.0 TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given
This commit is contained in:
parent
be1920b687
commit
2406fe0fad
@ -801,7 +801,7 @@ class infolog_so
|
|||||||
}
|
}
|
||||||
$sortbycf='';
|
$sortbycf='';
|
||||||
if (!empty($query['order']) && (preg_match('/^[a-z_0-9, ]+$/i',$query['order']) || stripos($query['order'],'#')!==FALSE ) &&
|
if (!empty($query['order']) && (preg_match('/^[a-z_0-9, ]+$/i',$query['order']) || stripos($query['order'],'#')!==FALSE ) &&
|
||||||
(empty($query['sort']) || preg_match('/^(DESC|ASC)$/i',$query['sort'])))
|
(empty($query['sort']) || is_string($query['sort']) && preg_match('/^(DESC|ASC)$/i',$query['sort'])))
|
||||||
{
|
{
|
||||||
$order = array();
|
$order = array();
|
||||||
foreach(explode(',',$query['order']) as $val)
|
foreach(explode(',',$query['order']) as $val)
|
||||||
|
Loading…
Reference in New Issue
Block a user