Browse Source

Oops: Protect against non-existing parameters... (occurs when configuring a list)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3252 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 11 years ago
parent
commit
41062070ac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/dbobjectset.class.php

+ 1 - 1
core/dbobjectset.class.php

@@ -1111,7 +1111,7 @@ class DBObjectSet
 			}
 			else
 			{
-				if (array_key_exists($sArgName, $aScalarArgs))
+				if (!is_array($value)) // Sometimes ExtraParams contains a mix (like defaults[]) so non scalar parameters are ignored
 				{
 					$aScalarArgs[$sArgName] = (string) $value;
 				}