mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 08:09:02 +01:00
fix "Illegal offset type in isset or empty" when renaming a backup
This commit is contained in:
parent
158e1a39cb
commit
673ac0a14a
@ -181,7 +181,7 @@ if (!empty($_POST['delete']) && ($msg = $db_backup->delete(key($_POST['delete'])
|
||||
$setup_tpl->set_var('error_msg', $msg);
|
||||
}
|
||||
// rename a backup
|
||||
if (!empty($file=$_POST['rename']) && !empty($_POST['new_name'][$file]) &&
|
||||
if (!empty($_POST['rename']) && ($file = key($_POST['rename'])) && !empty($_POST['new_name'][$file]) &&
|
||||
($msg = $db_backup->rename($file, $_POST['new_name'][$file])))
|
||||
{
|
||||
$setup_tpl->set_var('error_msg', $msg);
|
||||
|
Loading…
Reference in New Issue
Block a user