From 0f0ccc78514dfaac709dec448843228a01688dfe Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 15 Nov 2021 09:57:56 -0700 Subject: [PATCH] Avoid PHP 8.0 PHP Warning: Undefined variable $domain --- filemanager/cli.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/filemanager/cli.php b/filemanager/cli.php index e0db48ca3b..1b3c8283d9 100755 --- a/filemanager/cli.php +++ b/filemanager/cli.php @@ -80,6 +80,7 @@ function usage($error_msg='') exit; } $long = $numeric = $recursive = $perms = $all = $inode = false; +$domain = 'default'; $args = $_SERVER['argv']; $cmd = basename(array_shift($args),'.php'); 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) { - load_egw($user,$passwd,$domain ? $domain : 'default'); + load_egw($user, $passwd, $domain); } $argc = count($argv);