mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
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 = '';
|
$querymethod = '';
|
||||||
if($query)
|
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;
|
$querymethod .= ' ORDER BY '.$order;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user