From 55e712bc4307d4d7bc5304eb8c8a949474b367cc Mon Sep 17 00:00:00 2001 From: steckbrief Date: Mon, 19 Sep 2016 12:47:25 +0200 Subject: Prevent error message in case of open basedir restrictions and non-existant directory --- include/functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/functions.inc.php b/include/functions.inc.php index a7135a4f4..ebaf6135e 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -122,7 +122,7 @@ define('MKGETDIR_DEFAULT', MKGETDIR_RECURSIVE | MKGETDIR_DIE_ON_ERROR | MKGETDIR */ function mkgetdir($dir, $flags=MKGETDIR_DEFAULT) { - if ( !is_dir($dir) ) + if ( !@is_dir($dir) ) { global $conf; if (substr(PHP_OS, 0, 3) == 'WIN') @@ -391,7 +391,7 @@ SELECT id, name $languages = array(); while ($row = pwg_db_fetch_assoc($result)) { - if (is_dir(PHPWG_ROOT_PATH.'language/'.$row['id'])) + if (@is_dir(PHPWG_ROOT_PATH.'language/'.$row['id'])) { $languages[ $row['id'] ] = $row['name']; } -- cgit v1.2.3