From 58cb67ecd34453b876f4129577133d2eb3fd518d Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Mon, 7 Jul 2014 10:25:52 +0000 Subject: [PATCH] Protect against non-existing parameters... (occurs when configuring a list) SVN:trunk[3249] --- core/dbobjectset.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/dbobjectset.class.php b/core/dbobjectset.class.php index 85012f8f0..55ff5eb98 100644 --- a/core/dbobjectset.class.php +++ b/core/dbobjectset.class.php @@ -1111,7 +1111,10 @@ class DBObjectSet } else { - $aScalarArgs[$sArgName] = (string) $value; + if (array_key_exists($sArgName, $aScalarArgs)) + { + $aScalarArgs[$sArgName] = (string) $value; + } } } $aScalarArgs['current_contact_id'] = UserRights::GetContactId();