mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:42 +01:00
fix "Illegal offset type in isset or empty" when renaming a backup
This commit is contained in:
parent
e573490d6e
commit
8de012795e
@ -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