From c84378648f3dede4c30bea9a5e549dafd563adc7 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 2 Apr 2018 14:08:14 -0700 Subject: Fallback to "status:open" if there is no user filter --- app/Core/User/UserSession.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Core/User/UserSession.php') diff --git a/app/Core/User/UserSession.php b/app/Core/User/UserSession.php index d52e6c73..d5f851e6 100644 --- a/app/Core/User/UserSession.php +++ b/app/Core/User/UserSession.php @@ -223,7 +223,7 @@ class UserSession extends Base public function getFilters($projectID) { if (! session_exists('filters:'.$projectID)) { - return session_get('user')['filter']; + return session_get('user')['filter'] ?: 'status:open'; } return session_get('filters:'.$projectID); -- cgit v1.2.3