From 106d4f079715d36af5690fdecbb9245778016c7c Mon Sep 17 00:00:00 2001 From: hecht Date: Sat, 10 Dec 2011 13:57:35 +0000 Subject: [PATCH] suppress warnings if acces is not allowed --- ag/path.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ag/path.inc.php b/ag/path.inc.php index f8b5ed5..4efca73 100644 --- a/ag/path.inc.php +++ b/ag/path.inc.php @@ -18,7 +18,7 @@ if(!defined('ROOT_PATH')) { if($url_path != null) { $url_path = substr($url_path,0,strrpos($url_path,'/')); } - if(is_dir($actual_path . '/include/config')) { + if(@is_dir($actual_path . '/include/config')) { define('ROOT_PATH', $actual_path); if($url_path != null) { define('ROOT_URL', $url_path);