Browse code

error handling

Bernd Wurst authored on 23/01/2022 11:48:43
Showing 1 changed files
... ...
@@ -21,6 +21,9 @@ require_once('inc/security.php');
21 21
 
22 22
 function get_lists($filter)
23 23
 {
24
+    if (! isset($_SESSION['userinfo'])) {
25
+        return [];
26
+    }
24 27
     $uid = (int) $_SESSION['userinfo']['uid'];
25 28
     $result = null;
26 29
     if ($filter) {