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 else
{ {
$query[] = $prefix.'='.urlencode($values); $query[] = $prefix.'='.urlencode($values ?? '');
} }
return $query; return $query;
} }

View File

@ -291,9 +291,9 @@ class Base
// setting default user, passwd and domain, if it's not contained int the url // setting default user, passwd and domain, if it's not contained int the url
$defaults = array( $defaults = array(
'user' => $GLOBALS['egw_info']['user']['account_lid'], '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'], '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); $parts = array_merge(Vfs::parse_url($_path), Vfs::parse_url($path) ?: [], $defaults);
if(!$parts['host']) if(!$parts['host'])