aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/metastrings.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/metastrings.php')
-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 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;