Skip to content

Commit

Permalink
Notice: Undefined variable: menu_link in page_tree.php
Browse files Browse the repository at this point in the history
Notice: Undefined variable: menu_link in ...\wbce\admin\pages\page_tree\page_tree.php on line 161

Issue #65

Hello,
when logged in to backend as a user I got a message in pages:
Notice: Undefined variable: menu_link in ...\wbce\admin\pages\page_tree\page_tree.php on line 161

Please initiate menu_link as below
$menu_link = false;
// manage SECTIONS and DATES Icons -->
$canManageSections = (MANAGE_SECTIONS == 'enabled' && $admin->get_permission('pages_modify') == true && $can_modify == true)?true:false;

Thanks to qssocial
  • Loading branch information
NorHei committed Nov 23, 2015
1 parent 5efd6b5 commit 0c6d01a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wbce/admin/pages/page_tree/page_tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ function draw_pagetree($pages_list) {
$canModifyPage = ($admin->get_permission('pages_modify') == true && $can_modify == true)?true:false;
$canModifySettings = ($admin->get_permission('pages_settings') == true && $can_modify == true)?true:false;

// manage SECTIONS and DATES Icons -->
$canManageSections = (MANAGE_SECTIONS == 'enabled' && $admin->get_permission('pages_modify') == true && $can_modify == true)?true:false;
$menu_link = false;
// manage SECTIONS and DATES Icons -->
$canManageSections = (MANAGE_SECTIONS == 'enabled' && $admin->get_permission('pages_modify') == true && $can_modify == true)?true:false;
// query publ_start / publ_end
if ($canManageSections == true){
if($query_sections = $database->query('SELECT `publ_start`, `publ_end`,`module` FROM `'.TABLE_PREFIX.'sections` WHERE `page_id` = '.$p['page_id'])){
Expand Down

0 comments on commit 0c6d01a

Please sign in to comment.