From aa73525053236e5613ed96cea4b647f434383085 Mon Sep 17 00:00:00 2001 From: Georgy Kutsurua Date: Tue, 22 May 2012 17:45:17 +0400 Subject: [PATCH] fix Enum --- main/Base/LightMetaProperty.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'));