forked from extern/egroupware
added ' around cat_id, else you get invalid sql on new install with default cat set to 'all' or any other not numeric values
This commit is contained in:
parent
2a381e6dd4
commit
95b42ecd6b
@ -393,7 +393,7 @@
|
|||||||
if ($name == 'cat_id')
|
if ($name == 'cat_id')
|
||||||
{
|
{
|
||||||
// This is the alternative to CONCAT, since it is mysql-only
|
// This is the alternative to CONCAT, since it is mysql-only
|
||||||
$filterlist .= "(" . $name . " LIKE '%," . $value . ",%' OR " . $name."=".$value.");";
|
$filterlist .= "(" . $name . " LIKE '%," . $value . ",%' OR " . $name."='".$value."');";
|
||||||
}
|
}
|
||||||
elseif (gettype($value) == "integer")
|
elseif (gettype($value) == "integer")
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user