mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 08:53:37 +01:00
Avoid PHP 8.0 PHP Warning: Undefined variable $domain
This commit is contained in:
parent
4e4506d2be
commit
fd3cd58fab
@ -80,6 +80,7 @@ function usage($error_msg='')
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
$long = $numeric = $recursive = $perms = $all = $inode = false;
|
$long = $numeric = $recursive = $perms = $all = $inode = false;
|
||||||
|
$domain = 'default';
|
||||||
$args = $_SERVER['argv'];
|
$args = $_SERVER['argv'];
|
||||||
$cmd = basename(array_shift($args),'.php');
|
$cmd = basename(array_shift($args),'.php');
|
||||||
if ($args[0][0] != '-' && $args[0][0] != '/' && strpos($args[0],'://') === false)
|
if ($args[0][0] != '-' && $args[0][0] != '/' && strpos($args[0],'://') === false)
|
||||||
@ -186,7 +187,7 @@ while(!is_null($option = array_shift($args)))
|
|||||||
}
|
}
|
||||||
if ($user && $passwd)
|
if ($user && $passwd)
|
||||||
{
|
{
|
||||||
load_egw($user,$passwd,$domain ? $domain : 'default');
|
load_egw($user, $passwd, $domain);
|
||||||
}
|
}
|
||||||
$argc = count($argv);
|
$argc = count($argv);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user