mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-10 16:08:34 +01:00
fixed warning, if session dir is not listable
This commit is contained in:
parent
9eb50fff4a
commit
44ebdd457a
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user