only optimise this case for regular tags
This commit is contained in:
parent
ca8fc63bf2
commit
937a430a50
@ -140,7 +140,7 @@ class Image {
|
||||
}
|
||||
return $total;
|
||||
}
|
||||
else if(count($tags) == 1) {
|
||||
else if(count($tags) == 1 && !preg_match("/[:=><]/", $tags[0])) {
|
||||
return $database->db->GetOne(
|
||||
$database->engine->scoreql_to_sql("SELECT count FROM tags WHERE SCORE_STRNORM(tag) = SCORE_STRNORM(?)"),
|
||||
$tags);
|
||||
|
Loading…
x
Reference in New Issue
Block a user