Merge pull request #945 from 2tvenom/patch-1

Fix warning
This commit is contained in:
Bryant Luk
2017-10-03 12:45:46 -05:00
committed by GitHub

View File

@@ -175,7 +175,7 @@ class PayPalModel
foreach ($param as $k => $v) { foreach ($param as $k => $v) {
if ($v instanceof PayPalModel) { if ($v instanceof PayPalModel) {
$ret[$k] = $v->toArray(); $ret[$k] = $v->toArray();
} elseif (sizeof($v) <= 0 && is_array($v)) { } elseif (is_array($v) && sizeof($v) <= 0) {
$ret[$k] = array(); $ret[$k] = array();
} elseif (is_array($v)) { } elseif (is_array($v)) {
$ret[$k] = $this->_convertToArray($v); $ret[$k] = $this->_convertToArray($v);