From 55537dd84bbdd6b0ba8756d5fdb633b2251a7dcb Mon Sep 17 00:00:00 2001 From: Julio Date: Mon, 11 Oct 2021 16:05:08 +0200 Subject: [PATCH] Fix delete session --- public/main/inc/lib/sessionmanager.lib.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/main/inc/lib/sessionmanager.lib.php b/public/main/inc/lib/sessionmanager.lib.php index 33801a0f50..1ca5e668da 100644 --- a/public/main/inc/lib/sessionmanager.lib.php +++ b/public/main/inc/lib/sessionmanager.lib.php @@ -1688,9 +1688,11 @@ class SessionManager } }); - if (!empty($deleteCoachList)) { + if ($deleteCoachList->count() > 0) { foreach ($deleteCoachList as $subscription) { - $em->remove($subscription); + if (null !== $subscription) { + $em->remove($subscription); + } } } }