mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
fix PHP Warning: Parameter 2 to patch_header() expected to be a reference, value given
This commit is contained in:
parent
cb3248a4e6
commit
5f62492b9c
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user