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 70631365c4
commit 81aaaf9675

View File

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