Avoid some errors about wrong type if old entry was not loaded

This commit is contained in:
nathangray 2016-12-06 08:57:44 -07:00
parent 0a4207258b
commit 5d05c2fac3

View File

@ -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