diff --git a/src/OP/API.php b/src/OP/API.php index f7c9e28..629744c 100644 --- a/src/OP/API.php +++ b/src/OP/API.php @@ -162,7 +162,7 @@ public static function convertXmlToPhpObj ($node) } } } - return 0 < count($ret) ? $ret : null; + return !empty($ret) ? $ret : null; } // parse array protected static function parseArray ($node)