better for prepared statements

git-svn-id: file:///home/shish/svn/shimmie2/trunk@834 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2008-04-30 11:44:49 +00:00
parent 3c46aa5335
commit 2f2a00b58a

View file

@ -96,7 +96,7 @@ class Index extends Extension {
$col = $matches[1];
$cmp = $matches[2];
$val = parse_shorthand_int($matches[3]);
$event->set_querylet(new Querylet("AND (images.$col $cmp $val)"));
$event->set_querylet(new Querylet("AND (images.$col $cmp ?)", array($val)));
}
else if(preg_match("/hash=([0-9a-fA-F]*)/i", $event->term, $matches)) {
$hash = strtolower($matches[2]);