fix search in holiday management, thanks to johann.heymes -AT- cyber-networks.fr

This commit is contained in:
Ralf Becker 2005-06-15 13:04:35 +00:00
parent 6fe80d562f
commit cbd4c0e92d

View File

@ -162,10 +162,10 @@
$querymethod = '';
if($query)
{
$querymethod .= " WHERE hol_locale LIKE ".$this->db->quote('%'.$query.'%');
$querymethod = 'hol_locale LIKE '.$this->db->quote('%'.$query.'%');
}
if(preg_match('/[a-zA-Z0-9_,]+/',$order))
if(preg_match('/^[a-zA-Z0-9_,]+$/',$order))
{
$querymethod .= ' ORDER BY '.$order;
}