aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-07 15:14:04 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-07 15:14:04 +0000
commit92fe8562608521b9798736514903a3159b61f43b (patch)
tree7698e73cbd61ae6efd069261b9e7120f8a74df95 /engine
parent29e888e4af2de7e317ce34040761362ad14286be (diff)
downloadelgg-92fe8562608521b9798736514903a3159b61f43b.tar.gz
elgg-92fe8562608521b9798736514903a3159b61f43b.tar.bz2
fixes #1227 - this one has been causing nasty problems for far too long
git-svn-id: http://code.elgg.org/elgg/trunk@3630 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/metastrings.php4
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;
}