From 58a0f0fa05761d3d86bc42847870de63d308bd8c Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 15 Feb 2018 10:49:46 +0200 Subject: [PATCH] Clear history on login --- app/Libraries/HistoryUtils.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Libraries/HistoryUtils.php b/app/Libraries/HistoryUtils.php index bfce42ec7ae8..a1394e3d42ea 100644 --- a/app/Libraries/HistoryUtils.php +++ b/app/Libraries/HistoryUtils.php @@ -12,7 +12,8 @@ class HistoryUtils public static function loadHistory($users) { $userIds = []; - + session([RECENTLY_VIEWED => false]); + if (is_array($users)) { foreach ($users as $user) { $userIds[] = $user->user_id;