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, 3 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index d98b0fabf..78eb17daf 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -112,7 +112,7 @@
} else {
$location = $CONFIG->views->locations[$view];
}
- if (!@include($location . "{$viewtype}/{$view}.php")) {
+ if (file_exists($location . "{$viewtype}/{$view}.php") && !@include($location . "{$viewtype}/{$view}.php")) {
$success = false;
if ($viewtype != "default") {
if (@include($location . "default/{$view}.php")) {
@@ -122,6 +122,8 @@
if (!$success && isset($CONFIG->debug) && $CONFIG->debug == true) {
echo " [This view ({$view}) does not exist] ";
}
+ } else if ($CONFIG->debug == true) {
+ echo " [This view ({$view}) does not exist] ";
}
}