aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/elgglib.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 00a0c83ba..763b69911 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -1334,7 +1334,10 @@
break;
default:
- error_log("DEBUG: " . $error);
+ global $CONFIG;
+ if (isset($CONFIG->debug)) {
+ error_log("DEBUG: " . $error);
+ }
// register_error("DEBUG: " . $error);
}