better for prepared statements
git-svn-id: file:///home/shish/svn/shimmie2/trunk@834 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
3c46aa5335
commit
2f2a00b58a
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Reference in a new issue