fix PHP Warning: Parameter 2 to patch_header() expected to be a reference, value given

This commit is contained in:
Ralf Becker 2016-05-26 10:46:19 +02:00
parent cb3248a4e6
commit 5f62492b9c

View File

@ -401,7 +401,10 @@ else
// get user from header and replace password, as we dont know it
$old_password = patch_header($config['header'],$config['config_user'],$config['config_passwd']);
// register a shutdown function to put old password back in any case
register_shutdown_function('patch_header',$config['header'],$config['config_user'],$old_password);
register_shutdown_function(function() use (&$config, $old_password)
{
patch_header($config['header'], $config['config_user'], $old_password);
});
// update egroupware
$setup_update = $setup_cli.' --update '.escapeshellarg('all,'.$config['config_user'].','.$config['config_passwd'].',,'.$config['install-update-app']);