forked from extern/egroupware
fix search in holiday management, thanks to johann.heymes -AT- cyber-networks.fr
This commit is contained in:
parent
6fe80d562f
commit
cbd4c0e92d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user