瀏覽代碼

#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 年之前
父節點
當前提交
2ebe72fd17
共有 1 個文件被更改,包括 4 次插入1 次删除
  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