fixed wrong regular expression

This commit is contained in:
Ralf Becker 2004-08-07 10:40:10 +00:00
parent 1de5c35348
commit 86e0942150

View File

@ -151,7 +151,7 @@
}
if ($add_order_by)
{
$querymethod .= ' ORDER BY '.(preg_match('/[a-zA-Z0-9_,]+/',$order) ? $order : 'hol_month_num,hol_mday');
$querymethod .= ' ORDER BY '.(preg_match('/^[a-zA-Z0-9_,]+$/',$order) ? $order : 'hol_month_num,hol_mday');
}
return $querymethod;
}