From 263caae5e8d6e7f486ebf0d3c9ee90442a87f938 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 8 Nov 2005 10:10:36 +0000 Subject: [PATCH] missing param --- phpgwapi/inc/class.categories.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index 22e6d629ed..8120f1c389 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -242,7 +242,7 @@ if (!$sort) $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; }