mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
fix for
Warning: preg_match() expects at least 2 parameters, 1 given in /var/www/www.phpgw.de/htdocs/egroupware/phpgwapi/inc/class.categories.inc.php on line 164
This commit is contained in:
parent
ec1cf301b2
commit
56ae9c191a
@ -161,7 +161,7 @@
|
||||
$sort = 'ASC';
|
||||
}
|
||||
|
||||
if (!empty($order) && preg_match('/^[a-zA-Z_, ]+$/',$order) && (empty($sort) || preg_match('/^(ASC|DESC|asc|desc)$/')))
|
||||
if (!empty($order) && preg_match('/^[a-zA-Z_, ]+$/',$order) && (empty($sort) || preg_match('/^(ASC|DESC|asc|desc)$/',$sort)))
|
||||
{
|
||||
$ordermethod = " ORDER BY $order $sort";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user