diff --git a/setup/inc/class.setup_cmd_admin.inc.php b/setup/inc/class.setup_cmd_admin.inc.php index d624fcb394..268874eb0b 100644 --- a/setup/inc/class.setup_cmd_admin.inc.php +++ b/setup/inc/class.setup_cmd_admin.inc.php @@ -109,9 +109,9 @@ class setup_cmd_admin extends setup_cmd // to run all hooks (some of them can NOT run inside setup) $cmd = EGW_SERVER_ROOT.'/admin/admin-cli.php --add-user '. escapeshellarg($this->admin_user.'@'.$this->domain.','.$this->admin_password.','.$this->admin_user); + $output = []; $ret = 0; if (php_sapi_name() !== 'cli' || !file_exists(EGW_SERVER_ROOT.'/stylite') || file_exists(EGW_SERVER_ROOT.'/managementserver')) { - $output = $ret = null; exec($cmd,$output,$ret); } $output = implode("\n",$output); @@ -122,4 +122,4 @@ class setup_cmd_admin extends setup_cmd } return lang('Admin account successful created.'); } -} +} \ No newline at end of file