From 9dcc59f6109a764b5d409425ec8f273c124608fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 10 Mar 2022 17:15:50 +0100 Subject: [PATCH] Fix UserAction::clearDeadSessions() This got broken in 527a04db5861d86078b68683e071919b7891c1c1. --- LICENSE | 2 +- files/lib/data/user/UserAction.class.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index 7833e96..93f18a5 100644 --- a/LICENSE +++ b/LICENSE @@ -10,7 +10,7 @@ Additional Use Grant: You may use the Licensed Work when your application uses the Licensed Work for a purpose that does neither directly or indirectly generate revenue. -Change Date: 2026-03-04 +Change Date: 2026-03-10 Change License: Version 2 or later of the GNU General Public License as published by the Free Software Foundation. diff --git a/files/lib/data/user/UserAction.class.php b/files/lib/data/user/UserAction.class.php index c281454..80a9e5a 100644 --- a/files/lib/data/user/UserAction.class.php +++ b/files/lib/data/user/UserAction.class.php @@ -6,7 +6,7 @@ * Use of this software is governed by the Business Source License * included in the LICENSE file. * - * Change Date: 2026-03-04 + * Change Date: 2026-03-10 * * On the date above, in accordance with the Business Source * License, use of this software will be governed by version 2 @@ -88,7 +88,7 @@ public function getUsersByID() public function clearDeadSessions() { $sessions = User::getDeadSessions(); - if ($sessions !== []) { + if ($sessions === []) { return; } $userIDs = \array_map(static function ($item) {