diff --git a/includes/entity.wrapper.inc b/includes/entity.wrapper.inc index 70c14c1dad23aea45085589ad4346416fd45f671..860d2c3339d67682da9c2a17ffe6ed6c0f1b0d69 100644 --- a/includes/entity.wrapper.inc +++ b/includes/entity.wrapper.inc @@ -121,7 +121,7 @@ abstract class EntityMetadataWrapper { if (!$this->validate($value)) { throw new EntityMetadataWrapperException(t('Invalid data value given. Be sure it matches the required data type and format. Value at !location: !value.', array( // An exception's message is output through check_plain(). - '!value' => is_array($value) || is_object($value) ? var_export($value) : $value, + '!value' => is_array($value) || is_object($value) ? var_export($value, TRUE) : $value, '!location' => $this->debugIdentifierLocation(), ))); } @@ -755,7 +755,7 @@ class EntityDrupalWrapper extends EntityStructureWrapper { if (!$this->validate($value)) { throw new EntityMetadataWrapperException(t('Invalid data value given. Be sure it matches the required data type and format. Value at !location: !value.', array( // An exception's message is output through check_plain(). - '!value' => is_array($value) || is_object($value) ? var_export($value) : $value, + '!value' => is_array($value) || is_object($value) ? var_export($value, TRUE) : $value, '!location' => $this->debugIdentifierLocation(), ))); }