aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/elgglib.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 78afe49ce..6edc41fbd 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -137,7 +137,7 @@
if (!$success && isset($CONFIG->debug) && $CONFIG->debug == true) {
echo " [This view ({$view}) does not exist] ";
}
- } else if ($CONFIG->debug == true) {
+ } else if ($CONFIG->debug == true && !file_exists($location . "{$viewtype}/{$view}.php")) {
echo $location . "{$viewtype}/{$view}.php";
echo " [This view ({$view}) does not exist] ";
}