aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 57b96e615..d98b0fabf 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -119,7 +119,7 @@
$success = true;
}
}
- if (!$success && $CONFIG->debug == true) {
+ if (!$success && isset($CONFIG->debug) && $CONFIG->debug == true) {
echo " [This view ({$view}) does not exist] ";
}
}
@@ -481,7 +481,7 @@
error_log("DEBUG: " . $error);
// register_error("DEBUG: " . $error);
}
- echo "$error <br />";
+
return true;
}