This commit is contained in:
Laurent Destailleur 2026-03-02 05:57:02 +01:00
parent 82d3d3ba92
commit e85fd10a2b
2 changed files with 2 additions and 2 deletions

View file

@ -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)) {

View file

@ -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;
}