mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 16:29:22 +01:00
Fix delete() (bug #2260)
This commit is contained in:
parent
bfb5eb6682
commit
fd3425bac4
@ -139,13 +139,17 @@ class boinfolog extends infolog_bo
|
|||||||
*/
|
*/
|
||||||
function delete($data)
|
function delete($data)
|
||||||
{
|
{
|
||||||
if (is_array($info_id))
|
if (is_array($data))
|
||||||
{
|
{
|
||||||
$delete_children = $info_id['delete_children'];
|
$delete_children = $data['delete_children'];
|
||||||
$new_parent = $info_id['new_parent'];
|
$new_parent = $data['new_parent'];
|
||||||
$info_id = (int)(isset($info_id[0]) ? $info_id[0] : (isset($info_id['info_id']) ? $info_id['info_id'] : $info_id['info_id']));
|
$info_id = (int)(isset($data[0]) ? $data[0] : $data['info_id']);
|
||||||
|
$status = parent::delete($info_id,$delete_children,$new_parent);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$status = parent::delete($data);
|
||||||
}
|
}
|
||||||
$status = parent::delete($info_id,$delete_children,$new_parent);
|
|
||||||
|
|
||||||
if ($status === false)
|
if ($status === false)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user