mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-20 07:42:17 +02:00
Proper error reporting...
SVN:trunk[2388]
This commit is contained in:
@@ -1368,7 +1368,7 @@ class AttributeString extends AttributeDBField
|
|||||||
{
|
{
|
||||||
if (!is_string($value) && !is_null($value))
|
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;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user