Skip to content

Commit a74e809

Browse files
committed
Fixed bug where commission could not be set due to wrong or/and
1 parent 6f32dc6 commit a74e809

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/MoIP.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ public function addComission($param)
572572
if (!isset($param['login_moip']))
573573
throw new InvalidArgumentException('Você deve especificar um usuário para comissionar.');
574574

575-
if (!isset($param['valor_fixo']) or !isset($param['valor_percentual']))
575+
if (!isset($param['valor_fixo']) and !isset($param['valor_percentual']))
576576
throw new InvalidArgumentException('Você deve especificar um tipo de valor para comissionar.');
577577

578578
if (isset($param['valor_fixo']) and isset($param['valor_percentual']))

0 commit comments

Comments
 (0)