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
dfec4360b3
commit
b2f8d216f1
@ -801,7 +801,7 @@ class infolog_so
|
||||
}
|
||||
$sortbycf='';
|
||||
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();
|
||||
foreach(explode(',',$query['order']) as $val)
|
||||
|
Loading…
Reference in New Issue
Block a user