mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 19:03:14 +01:00
- error_reporting E_ALL
- fixed handling of not reported session.save_path
This commit is contained in:
parent
accff8c9c2
commit
59832ed87e
@ -201,9 +201,9 @@ $checks = array(
|
||||
'only_if_exists' => @$GLOBALS['egw_info']['setup']['stage']['header'] != 10
|
||||
),
|
||||
);
|
||||
if (extension_loaded('session') && ini_get('session.save_handler') == 'files')
|
||||
if (extension_loaded('session') && ini_get('session.save_handler') == 'files' && ($session_path = session_save_path()))
|
||||
{
|
||||
$checks[session_save_path()] = array(
|
||||
$checks[$session_path] = array(
|
||||
'func' => 'permission_check',
|
||||
'is_writable' => true,
|
||||
'msg' => lang("Checking if php.ini setting session.save_path='%1' is writable by the webserver",session_save_path()),
|
||||
@ -524,7 +524,7 @@ function permission_check($name,$args,$verbose=True)
|
||||
|
||||
// add a ../ for non-absolute pathes
|
||||
$rel_name = $name;
|
||||
if (substr($name,0,3) != '../' && $name{0} != '/' && $name{0} != '\\' && strpos($name,':') === false)
|
||||
if ($name && substr($name,0,3) != '../' && $name{0} != '/' && $name{0} != '\\' && strpos($name,':') === false)
|
||||
{
|
||||
$name = '../'.$name;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user