From 7a001ba5804676b0b67c637f433f3751ec614620 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 14 Nov 2007 14:21:38 +0000 Subject: Suppress warnings on shared hosters with open_basedir set --- it_auto_prepend.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'it_auto_prepend.php') diff --git a/it_auto_prepend.php b/it_auto_prepend.php index 472a016..87ec0a0 100644 --- a/it_auto_prepend.php +++ b/it_auto_prepend.php @@ -85,7 +85,7 @@ function it_initialize() if ($needsconvert) it_convert($include); - if (file_exists($autoprepend = "$include/auto_prepend.php")) + if (@file_exists($autoprepend = "$include/auto_prepend.php")) { if ($needsconvert && ($include != $it_path)) $autoprepend = it_convert($autoprepend); @@ -118,12 +118,12 @@ function it_initialize() function it_convert($source) { - if (is_dir($source) && !is_link($source)) + if (@is_dir($source) && !@is_link($source)) { foreach (glob("$source/*") as $file) it_convert($file); } - else if (is_readable($source)) + else if (@is_readable($source)) { $converted = $GLOBALS['IT_SYNTAXCONVERTER_DIR'] . "/it_syntaxconverter/$source"; -- cgit v1.2.3