From bc5c274c8f2dca0a5e5e157f8d8c68271e8bfe61 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Tue, 9 Jul 2013 09:20:43 +0000 Subject: [PATCH] Fix notice in view/canned.php Notice was about undefined index 'level' in view/canned.php on line 48 --- src/messenger/webim/operator/canned.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/messenger/webim/operator/canned.php b/src/messenger/webim/operator/canned.php index e479058c..d0b98bf8 100644 --- a/src/messenger/webim/operator/canned.php +++ b/src/messenger/webim/operator/canned.php @@ -57,7 +57,11 @@ if ($groupid) { $allgroups = in_isolation($operator)?get_all_groups_for_operator($operator):get_all_groups(); $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) { $page['groups'][] = $g; }