diff options
author | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-26 20:37:17 +0000 |
---|---|---|
committer | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-26 20:37:17 +0000 |
commit | 68ce78d622a1fb8c5ee002b5efc06b05a7b4555d (patch) | |
tree | d91ff3d2a1ab1b516552fea03d4b660e9243a544 | |
parent | 4af004ea8e030bbe23c9625462f1761582f0cafc (diff) | |
download | elgg-68ce78d622a1fb8c5ee002b5efc06b05a7b4555d.tar.gz elgg-68ce78d622a1fb8c5ee002b5efc06b05a7b4555d.tar.bz2 |
Rewriting metastrings search query for simplicity.
git-svn-id: http://code.elgg.org/elgg/trunk@3583 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/metastrings.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/metastrings.php b/engine/lib/metastrings.php index a2f95b9f8..12ab87b27 100644 --- a/engine/lib/metastrings.php +++ b/engine/lib/metastrings.php @@ -59,7 +59,7 @@ function get_metastring_id($string, $case_sensitive = TRUE) { if ($case_sensitive) { $query = "SELECT * from {$CONFIG->dbprefix}metastrings where string= BINARY '$string' limit 1"; } else { - $query = "SELECT * from {$CONFIG->dbprefix}metastrings where strcmp(string,'$string')=0"; + $query = "SELECT * from {$CONFIG->dbprefix}metastrings where string = '$string'"; } $row = FALSE; |