diff --git a/validFluent.php b/validFluent.php index 69292d4..a363874 100644 --- a/validFluent.php +++ b/validFluent.php @@ -376,7 +376,7 @@ function equal($value2, $errorMsg=NULL) */ function oneOf($items, $errorMsg=NULL) { - if ($this->isValid && (!empty($this->currentObj->value))) + if ($this->isValid && (isset($this->currentObj->value))) { $item = explode(':', strtolower($items));