From 8b113a9c61a171b95bc3afd2d22b370685b9e883 Mon Sep 17 00:00:00 2001 From: Grischa Brockhaus Date: Tue, 2 Jun 2009 12:36:39 +0000 Subject: [PATCH] Better error message for having problems while including files. --- include/functions_installer.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/functions_installer.inc.php b/include/functions_installer.inc.php index 3b7cb14e..c975296c 100644 --- a/include/functions_installer.inc.php +++ b/include/functions_installer.inc.php @@ -282,6 +282,9 @@ function serendipity_parseTemplate($filename, $areas = null, $onlyFlags=null) { } $config = @include($filename); + if (! is_array($config)) { + echo "Error reading: " . $filename . "
Perhaps the Webserver can't access the file?
"; + } foreach ( $config as $n => $category ) { /* If $areas is an array, we filter out those categories, not within the array */