Check if setting exists before trying to count (#7071)
Co-authored-by: Tim Fry <tim@fusionpbx.com>
This commit is contained in:
parent
ce26f227bf
commit
16574221b1
|
|
@ -278,7 +278,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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue