Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
vutungf committed Jan 11, 2024
1 parent 06837d2 commit db3c6d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PayPal/Common/PayPalModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private function _convertToArray($param)
foreach ($param as $k => $v) {
if ($v instanceof PayPalModel) {
$ret[$k] = $v->toArray();
} else if (sizeof($v) <= 0 && is_array($v)) {
} else if (is_array($v) && sizeof($v) <= 0) {
$ret[$k] = array();
} else if (is_array($v)) {
$ret[$k] = $this->_convertToArray($v);
Expand Down

0 comments on commit db3c6d5

Please sign in to comment.