From 7de488c47b23225ae72c1ba08a76b21481f46b78 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 25 Apr 2008 10:45:26 +0000 Subject: Fix to the debug messages for elgg_view git-svn-id: https://code.elgg.org/elgg/trunk@524 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib') 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] "; } -- cgit v1.2.3