diff --git a/lib/PayPal/Common/PayPalModel.php b/lib/PayPal/Common/PayPalModel.php index 2cab284f..187c1595 100644 --- a/lib/PayPal/Common/PayPalModel.php +++ b/lib/PayPal/Common/PayPalModel.php @@ -175,7 +175,7 @@ private function _convertToArray($param) foreach ($param as $k => $v) { if ($v instanceof PayPalModel) { $ret[$k] = $v->toArray(); - } elseif (is_array($v) && sizeof($v) <= 0) { + } else if (is_array($v) && sizeof($v) <= 0) { $ret[$k] = array(); } elseif (is_array($v)) { $ret[$k] = $this->_convertToArray($v);