fixed warning, if session dir is not listable

This commit is contained in:
Ralf Becker 2007-12-15 16:19:38 +00:00
parent 9eb50fff4a
commit 44ebdd457a

View File

@ -209,7 +209,7 @@
$values = array(); $values = array();
$maxmatchs = $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs']; $maxmatchs = $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs'];
$dir = @opendir($path = ini_get('session.save_path')); $dir = @opendir($path = ini_get('session.save_path'));
if (!$dir) // eg. openbasedir restrictions if (!$dir || !@file_exists($path.'/.')) // eg. openbasedir restrictions, or dir not listable
{ {
return $values; return $values;
} }