From 8cb2cb0429ac76a0ae52b186ee75987eb0c775b3 Mon Sep 17 00:00:00 2001 From: EchoLoGeek <73399671+EchoLoGeek@users.noreply.github.com> Date: Fri, 25 Nov 2022 22:34:53 +0100 Subject: [PATCH] Update card.php --- htdocs/user/card.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/user/card.php b/htdocs/user/card.php index 7fc268568c8..7f8959975f6 100644 --- a/htdocs/user/card.php +++ b/htdocs/user/card.php @@ -537,6 +537,9 @@ if (empty($reshook)) { $sql .= " SET fk_socpeople=".((int) $contactid); if (!empty($contact->socid)) { $sql .= ", fk_soc=".((int) $contact->socid); + } elseif($socid > 0){ + $sql .= ", fk_soc=''"; + setEventMessages($langs->trans("WarningUserDifferentContactSocid"),'','warnings'); // Add message if post socid != $contact->socid } $sql .= " WHERE rowid = ".((int) $object->id); } elseif ($socid > 0) {