From 8b5d80c930d9a7b054145346bfddbcb6083503de Mon Sep 17 00:00:00 2001 From: lvessiller-opendsi Date: Tue, 17 Sep 2024 02:31:43 +0200 Subject: [PATCH] FIX member must be found to search the linked partnership (WebPortal) (#30977) --- htdocs/public/webportal/webportal.main.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/public/webportal/webportal.main.inc.php b/htdocs/public/webportal/webportal.main.inc.php index 85d304b6762..2ee4778aad6 100644 --- a/htdocs/public/webportal/webportal.main.inc.php +++ b/htdocs/public/webportal/webportal.main.inc.php @@ -255,7 +255,7 @@ if (!defined('WEBPORTAL_NOLOGIN') && !empty($context->controllerInstance->access $context->setEventMessage($error_msg, 'errors'); } - if (!$error) { + if (!$error && $logged_member->id > 0) { // get partnership $logged_partnership = new WebPortalPartnership($db); // @phan-suppress-next-line PhanPluginSuspiciousParamPosition