diff options
author | steckbrief <steckbrief@chefmail.de> | 2016-09-19 12:47:25 +0200 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2016-09-19 12:47:25 +0200 |
commit | 55e712bc4307d4d7bc5304eb8c8a949474b367cc (patch) | |
tree | 3dcd86671593238c4d18e972eb90fd8f6b78ab5e | |
parent | 843ccb89c1997d551bc1fb5769c5fdaad9655082 (diff) |
Prevent error message in case of open basedir restrictions and non-existant directory
-rw-r--r-- | include/functions.inc.php | 4 |
1 files 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']; } |