From 5af0f5f320fb380065980899420695eb06a8fb80 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Fri, 26 Oct 2012 13:57:40 +0000 Subject: [PATCH] Proper error reporting... SVN:trunk[2388] --- core/attributedef.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index 84be35022b..f579b9f48a 100644 --- a/core/attributedef.class.inc.php +++ b/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; }