From 5d05c2fac3b0b9ecc0275de9c79d632b6dfdceb3 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 6 Dec 2016 08:57:44 -0700 Subject: [PATCH] Avoid some errors about wrong type if old entry was not loaded --- infolog/inc/class.infolog_bo.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/infolog/inc/class.infolog_bo.inc.php b/infolog/inc/class.infolog_bo.inc.php index 32f1ddf727..85d2a1b8cc 100644 --- a/infolog/inc/class.infolog_bo.inc.php +++ b/infolog/inc/class.infolog_bo.inc.php @@ -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