diff options
Diffstat (limited to 'engine/lib/metastrings.php')
-rw-r--r-- | engine/lib/metastrings.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/metastrings.php b/engine/lib/metastrings.php index 12ab87b27..71f32a786 100644 --- a/engine/lib/metastrings.php +++ b/engine/lib/metastrings.php @@ -29,7 +29,7 @@ function get_metastring_id($string, $case_sensitive = TRUE) { // caching doesn't work for case insensitive searches if ($case_sensitive) { - $result = array_search($string, $METASTRINGS_CACHE); + $result = array_search($string, $METASTRINGS_CACHE, true); if ($result!==false) { elgg_log("** Returning id for string:$string from cache."); @@ -37,7 +37,7 @@ function get_metastring_id($string, $case_sensitive = TRUE) { } // See if we have previously looked for this and found nothing - if (in_array($string, $METASTRINGS_DEADNAME_CACHE)) { + if (in_array($string, $METASTRINGS_DEADNAME_CACHE, true)) { return false; } |