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:
Lars Kneschke 2004-04-05 06:04:07 +00:00
parent ec1cf301b2
commit 56ae9c191a

View File

@ -161,7 +161,7 @@
$sort = 'ASC'; $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"; $ordermethod = " ORDER BY $order $sort";
} }