Fix notice in view/canned.php

Notice was about undefined index 'level' in view/canned.php
on line 48
This commit is contained in:
Dmitriy Simushev 2013-07-09 09:20:43 +00:00
parent 37159eae3b
commit bc5c274c8f

View File

@ -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;
} }