fixing some PHP deprecated filling the install log

This commit is contained in:
ralf 2023-10-05 10:01:03 +02:00
parent a4ee20b3ee
commit d3c4e868c4
2 changed files with 3 additions and 3 deletions

View File

@ -1630,7 +1630,7 @@ class Session
}
else
{
$query[] = $prefix.'='.urlencode($values);
$query[] = $prefix.'='.urlencode($values ?? '');
}
return $query;
}

View File

@ -291,9 +291,9 @@ class Base
// setting default user, passwd and domain, if it's not contained int the url
$defaults = array(
'user' => $GLOBALS['egw_info']['user']['account_lid'],
'pass' => urlencode($GLOBALS['egw_info']['user']['passwd']),
'pass' => urlencode($GLOBALS['egw_info']['user']['passwd'] ?? ''),
'host' => $GLOBALS['egw_info']['user']['domain'],
'home' => str_replace(array('\\\\', '\\'), array('', '/'), $GLOBALS['egw_info']['user']['homedirectory']),
'home' => str_replace(array('\\\\', '\\'), array('', '/'), $GLOBALS['egw_info']['user']['homedirectory'] ?? ''),
);
$parts = array_merge(Vfs::parse_url($_path), Vfs::parse_url($path) ?: [], $defaults);
if(!$parts['host'])