missing param

This commit is contained in:
Ralf Becker 2005-11-08 10:10:36 +00:00
parent e36705e012
commit 263caae5e8

View File

@ -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;
}