From e26e8ac85b42192a9124bb0ce282b90459f74e6e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 1 Mar 2023 12:35:33 +0100 Subject: [PATCH] Debug v17 --- htdocs/partnership/class/partnership.class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/partnership/class/partnership.class.php b/htdocs/partnership/class/partnership.class.php index 130d24eb032..d61b43c2513 100644 --- a/htdocs/partnership/class/partnership.class.php +++ b/htdocs/partnership/class/partnership.class.php @@ -550,13 +550,11 @@ class Partnership extends CommonObject */ public function update(User $user, $notrigger = false) { - global $user; - if ($this->fk_soc <= 0 && $this->fk_member <= 0) { $this->error[] = "ErrorThirpdartyOrMemberidIsMandatory"; return -1; } - if (empty($this->fk_user_creat)) { // Fot the case the object was created with empty user. + if (empty($this->fk_user_creat)) { // For the case the object was created with empty user (from public page). $this->fk_user_creat = $user->id; }