mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Avoid some errors about wrong type if old entry was not loaded
This commit is contained in:
parent
70631365c4
commit
81aaaf9675
@ -964,6 +964,10 @@ class infolog_bo
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create (and remove) links in custom fields
|
// create (and remove) links in custom fields
|
||||||
|
if(!is_array($old))
|
||||||
|
{
|
||||||
|
$old = array();
|
||||||
|
}
|
||||||
Api\Storage\Customfields::update_links('infolog',$values,$old,'info_id');
|
Api\Storage\Customfields::update_links('infolog',$values,$old,'info_id');
|
||||||
|
|
||||||
// Check for restore of deleted entry, restore held links
|
// Check for restore of deleted entry, restore held links
|
||||||
|
Loading…
Reference in New Issue
Block a user