diff --git a/tests/includes/datastream_validators.inc b/tests/includes/datastream_validators.inc index 4768e989..b8ff785e 100644 --- a/tests/includes/datastream_validators.inc +++ b/tests/includes/datastream_validators.inc @@ -28,7 +28,7 @@ function islandora_hex2int($hex) { drupal_set_message(t('String passed to islandora_hex2int() contains non-hexidecimal characters.'), 'error'); return FALSE; } - if (!strlen($hex) === 4 || !strlen($hex) === 8) { + if (!(strlen($hex) == 4 || strlen($hex) == 8)) { drupal_set_message(t('String passed to islandora_hex2int() cannot create a 16- or 32-bit little-endian signed integer'), 'error'); return FALSE; }