diff --git a/htdocs/partnership/class/partnership.class.php b/htdocs/partnership/class/partnership.class.php index da449e21de1..2e82b88700b 100644 --- a/htdocs/partnership/class/partnership.class.php +++ b/htdocs/partnership/class/partnership.class.php @@ -386,7 +386,7 @@ class Partnership extends CommonObject * @param int $fk_soc fk_soc * @return int >0 if OK, <0 if KO, 0 if not found */ - public function fetch($id, $ref = null, $fk_member = null, $fk_soc = null) + public function fetch($id, $ref = '', $fk_member = 0, $fk_soc = 0) { // Check parameters if (empty($id) && empty($ref) && empty($fk_member) && empty($fk_soc)) { diff --git a/htdocs/public/payment/newpayment.php b/htdocs/public/payment/newpayment.php index 975e30d4a60..36debdd361d 100644 --- a/htdocs/public/payment/newpayment.php +++ b/htdocs/public/payment/newpayment.php @@ -1830,7 +1830,7 @@ if ($source == 'member' || $source == 'membersubscription') { $pp = 0; include_once DOL_DOCUMENT_ROOT.'/partnership/class/partnership.class.php'; $partnership = new Partnership($db); - $result = $partnership->fetch(0, null, null, $member->thirdparty->id); + $result = $partnership->fetch(0, '', 0, $member->thirdparty->id); if ($result > 0) { $pp = 1; }