diff --git a/core/dashboard/index.php b/core/dashboard/index.php index 1464487a4d..02d4fafe01 100644 --- a/core/dashboard/index.php +++ b/core/dashboard/index.php @@ -60,10 +60,14 @@ } //build a list of groups the user is a member of to be used in a SQL in - foreach($_SESSION['user']['groups'] as $group) { - $group_uuids[] = $group['group_uuid']; + if (is_array($_SESSION['user']['groups'])) { + foreach($_SESSION['user']['groups'] as $group) { + $group_uuids[] = $group['group_uuid']; + } + } + if (is_array($group_uuids)) { + $group_uuids_in = "'".implode("','", $group_uuids)."'"; } - $group_uuids_in = "'".implode("','", $group_uuids)."'"; //get the list $sql = "select \n"; @@ -317,10 +321,10 @@