Explorar o código

Proper error reporting...

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2388 a333f486-631f-4898-b8df-5754b55c2be0
dflaven %!s(int64=12) %!d(string=hai) anos
pai
achega
1435dfbe7c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 	}