diff options
-rw-r--r-- | engine/lib/elgglib.php | 5 |
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);
}
|