mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 08:38:54 +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);
|
$setup_tpl->set_var('error_msg', $msg);
|
||||||
}
|
}
|
||||||
// rename a backup
|
// 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])))
|
($msg = $db_backup->rename($file, $_POST['new_name'][$file])))
|
||||||
{
|
{
|
||||||
$setup_tpl->set_var('error_msg', $msg);
|
$setup_tpl->set_var('error_msg', $msg);
|
||||||
|
Loading…
Reference in New Issue
Block a user