Index: trunk/core/units/admin/admin_tag_processor.php =================================================================== diff -u -N -r8078 -r8104 --- trunk/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 8078) +++ trunk/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 8104) @@ -151,8 +151,14 @@ return $ret; } + $debug_mode = $this->Application->isDebugMode(); // caching for faster performance ksort($section_data['children'], SORT_NUMERIC); foreach ($section_data['children'] as $section_name) { + $section_data =& $sections_helper->getSectionData($section_name); + if (!$debug_mode && isset($section_data['debug_only']) && $section_data['debug_only']) { + // don't show section for debug mode only without debug mode turned on + continue; + } $params['section_name'] = $section_name; $ret .= $this->DrawTree($params); $deep_level--;