Skip to content
This repository has been archived by the owner on Oct 25, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1 from sqlr/bugfix/uncountable-variable
Browse files Browse the repository at this point in the history
Variable is not always countable
  • Loading branch information
Roel van Duijnhoven authored Aug 31, 2018
2 parents 2f02e08 + 7fcc530 commit 483d040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OP/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 483d040

Please sign in to comment.