Skip to content

Commit 6f65ef7

Browse files
committed
Merge pull request #104 from soloweb/fixEnum
LightMetaProperty: fix Enum
2 parents 1753995 + aa73525 commit 6f65ef7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/Base/LightMetaProperty.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,8 @@ public function toValue(ProtoDAO $dao = null, $array, $prefix = null)
407407
Assert::classExists($this->className);
408408

409409
if (
410-
!is_subclass_of($this->className, 'Enumeration') ||
411-
!is_subclass_of($this->className, 'Enum')
410+
!is_subclass_of($this->className, 'Enumeration')
411+
&& !is_subclass_of($this->className, 'Enum')
412412
) {
413413
$remoteDao = call_user_func(array($this->className, 'dao'));
414414

0 commit comments

Comments
 (0)