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:
Ralf Becker 2001-05-30 21:51:20 +00:00
parent 2a381e6dd4
commit 95b42ecd6b

View File

@ -393,7 +393,7 @@
if ($name == 'cat_id')
{
// 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")
{