Bläddra i källkod

Proper error reporting...

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2388 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 år sedan
förälder
incheckning
1435dfbe7c
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      core/attributedef.class.inc.php

+ 1 - 1
core/attributedef.class.inc.php

@@ -1368,7 +1368,7 @@ class AttributeString extends AttributeDBField
 	{
 		if (!is_string($value) && !is_null($value))
 		{
-			throw new CoreWarning('Expected the attribute value to be a string', array('found_type' => gettype($value), 'value' => $value, 'class' => $this->GetCode(), 'attribute' => $this->GetHostClass()));
+			throw new CoreWarning('Expected the attribute value to be a string', array('found_type' => gettype($value), 'value' => $value, 'class' => $this->GetHostClass(), 'attribute' => $this->GetCode()));
 		}
 		return $value;
 	}