mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-22 19:06:37 +00:00
Use is_array before foreach and implode
This commit is contained in:
@@ -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 @@
|
||||
<style>
|
||||
/*To prevent user selecting inside the drag source*/
|
||||
[draggable] {
|
||||
-moz-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
-moz-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.widget {
|
||||
|
||||
Reference in New Issue
Block a user