mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
Avoid some errors about wrong type if old entry was not loaded
This commit is contained in:
parent
0a4207258b
commit
5d05c2fac3
@ -950,6 +950,10 @@ class infolog_bo
|
||||
$to_write['info_responsible'] = $values['info_responsible'];
|
||||
}
|
||||
// create (and remove) links in custom fields
|
||||
if(!is_array($old))
|
||||
{
|
||||
$old = array();
|
||||
}
|
||||
Api\Storage\Customfields::update_links('infolog',$values,$old,'info_id');
|
||||
|
||||
// Check for restore of deleted entry, restore held links
|
||||
|
Loading…
Reference in New Issue
Block a user