Selaa lähdekoodia

#816 Completed the fix (still a Notice)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3001 a333f486-631f-4898-b8df-5754b55c2be0
romainq 11 vuotta sitten
vanhempi
commit
2ebe72fd17
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      core/metamodel.class.php

+ 4 - 1
core/metamodel.class.php

@@ -2106,7 +2106,10 @@ abstract class MetaModel
 			}
 			else
 			{
-				$aScalarArgs[$sArgName] = (string) $value;
+				if (is_scalar($value))
+				{
+					$aScalarArgs[$sArgName] = (string) $value;
+				}
 			}
 		}
 		// Add standard contextual arguments