mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Prevents an error when groups session is not set
This commit is contained in:
@@ -306,7 +306,7 @@
|
||||
//set default false
|
||||
$result = false;
|
||||
//search for the permission
|
||||
if (count($_SESSION["groups"]) > 0) {
|
||||
if (isset($_SESSION['groups']) && count($_SESSION["groups"]) > 0) {
|
||||
foreach ($_SESSION["groups"] as $row) {
|
||||
if ($row['group_name'] == $group) {
|
||||
$result = true;
|
||||
|
||||
Reference in New Issue
Block a user