diff --git a/main/Base/LightMetaProperty.class.php b/main/Base/LightMetaProperty.class.php index 548e33963a..78bf621ef3 100644 --- a/main/Base/LightMetaProperty.class.php +++ b/main/Base/LightMetaProperty.class.php @@ -407,8 +407,8 @@ public function toValue(ProtoDAO $dao = null, $array, $prefix = null) Assert::classExists($this->className); if ( - !is_subclass_of($this->className, 'Enumeration') || - !is_subclass_of($this->className, 'Enum') + !is_subclass_of($this->className, 'Enumeration') + && !is_subclass_of($this->className, 'Enum') ) { $remoteDao = call_user_func(array($this->className, 'dao'));