From ba8eed0e9e988019a5a3186f20c742111211f703 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 8 Jul 2008 08:17:12 +0000 Subject: Removing annoying warning messages git-svn-id: https://code.elgg.org/elgg/trunk@1328 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/metastrings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/lib/metastrings.php') diff --git a/engine/lib/metastrings.php b/engine/lib/metastrings.php index 4e56ac9e0..fe8cb5bcf 100644 --- a/engine/lib/metastrings.php +++ b/engine/lib/metastrings.php @@ -31,7 +31,7 @@ $result = array_search($string, $METASTRINGS_CACHE); if ($result!==false) { - if ($CONFIG->debug) + if (isset($CONFIG->debug) && $CONFIG->debug) error_log("** Returning id for string:$string from cache."); return $result; @@ -45,7 +45,7 @@ if ($row) { $METASTRINGS_CACHE[$row->id] = $row->string; // Cache it - if ($CONFIG->debug) + if (isset($CONFIG->debug) && $CONFIG->debug) error_log("** Cacheing string '{$row->string}'"); return $row->id; -- cgit v1.2.3