mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +03:00
Fix notice in view/canned.php
Notice was about undefined index 'level' in view/canned.php on line 48
This commit is contained in:
parent
37159eae3b
commit
bc5c274c8f
@ -57,7 +57,11 @@ if ($groupid) {
|
|||||||
|
|
||||||
$allgroups = in_isolation($operator)?get_all_groups_for_operator($operator):get_all_groups();
|
$allgroups = in_isolation($operator)?get_all_groups_for_operator($operator):get_all_groups();
|
||||||
$page['groups'] = array();
|
$page['groups'] = array();
|
||||||
$page['groups'][] = array('groupid' => '', 'vclocalname' => getlocal("page.gen_button.default_group"));
|
$page['groups'][] = array(
|
||||||
|
'groupid' => '',
|
||||||
|
'vclocalname' => getlocal("page.gen_button.default_group"),
|
||||||
|
'level' => 0
|
||||||
|
);
|
||||||
foreach ($allgroups as $g) {
|
foreach ($allgroups as $g) {
|
||||||
$page['groups'][] = $g;
|
$page['groups'][] = $g;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user