Proper error reporting...

SVN:trunk[2388]
This commit is contained in:
Denis Flaven
2012-10-26 13:57:40 +00:00
parent 050037acb2
commit 5af0f5f320

View File

@@ -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;
}