Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1337)
+++ branches/2.8.x/CHANGELOG	(revision 1338)
@@ -11,6 +11,8 @@
 ! = Update/Change
 
 ------------------------------------- 2.8.1 -------------------------------------
+28-Apr-2010 Dietmar Woellbrink (Luisehahne)
+!	insert modulename in sections, even for missing module, you can style it with class selector: module_disabled
 27-Apr-2010 Dietmar Woellbrink (Luisehahne)
 +	add an extra class class.secureform.php and extends it to class.wb.php
 !	check for installed modules before loading in content 
Index: branches/2.8.x/wb/admin/pages/sections.php
===================================================================
--- branches/2.8.x/wb/admin/pages/sections.php	(revision 1337)
+++ branches/2.8.x/wb/admin/pages/sections.php	(revision 1338)
@@ -75,7 +75,7 @@
 		$admin->print_footer();
 		exit();
 	}
-} elseif(isset($_POST['module']) AND $_POST['module'] != '')
+} elseif(isset($_POST['module']) && $_POST['module'] != '')
 {
 	// Get section info
 	$module = $admin->add_slashes($_POST['module']);
@@ -117,7 +117,7 @@
 		$in_old_group = TRUE;
 	}
 }
-if((!$in_old_group) AND !is_numeric(array_search($admin->get_user_id(), $old_admin_users)))
+if((!$in_old_group) && !is_numeric(array_search($admin->get_user_id(), $old_admin_users)))
 {
 	$admin->print_error($MESSAGE['PAGES']['INSUFFICIENT_PERMISSIONS']);
 }
@@ -130,12 +130,12 @@
 
 if($database->is_error())
 {
-	$admin->print_header();
+	// $admin->print_header();
 	$admin->print_error($database->get_error());
 }
 if($results->numRows() == 0)
 {
-	$admin->print_header();
+	// $admin->print_header();
 	$admin->print_error($MESSAGE['PAGES']['NOT_FOUND']);
 }
 $results_array = $results->fetchRow();
@@ -227,19 +227,18 @@
             $sql .= 'WHERE `directory` = "'.$section['module'].'"';
             $module_name = $database->get_one($sql);
             // if(DEBUG && $database->is_error()) { $admin->print_error($database->get_error()); }
+            $module_tmp = ( trim($module_name) == '' ) ? $section['module'] : $module_name;
 
-			$template->set_var(array(
-			) );
 
 			if(SECTION_BLOCKS)
             {
-                if(defined('EDIT_ONE_SECTION') and EDIT_ONE_SECTION)
+                if(defined('EDIT_ONE_SECTION') && EDIT_ONE_SECTION)
                 {
-				    $edit_page ='<a name="'.$section['section_id'].'" href="'.ADMIN_URL.'/pages/modify.php?page_id='.$page_id.'&amp;wysiwyg='.$section['section_id'] .'">'.$module_name.'</a>';
+				    $edit_page ='<a name="'.$section['section_id'].'" href="'.ADMIN_URL.'/pages/modify.php?page_id='.$page_id.'&amp;wysiwyg='.$section['section_id'] .'">'.$module_tmp.'</a>';
                 } else {
-				    $edit_page ='<a name="'.$section['section_id'].'" href="'.ADMIN_URL.'/pages/modify.php?page_id='.$page_id.'#wb'.$section['section_id'].'">'.$module_name.'</a>';
+				    $edit_page ='<a name="'.$section['section_id'].'" href="'.ADMIN_URL.'/pages/modify.php?page_id='.$page_id.'#wb'.$section['section_id'].'">'.$module_tmp.'</a>';
                 }
-
+                $edit_page = ( trim($module_name) == '' ) ? '<span class="module_disabled">'.$section['module'].'</span>' : $edit_page;
 				$input_attribute = 'input_normal';
 				$template->set_var(array(
 						'STYLE_DISPLAY_SECTION_BLOCK' => ' style="visibility:visible;"',
@@ -250,7 +249,7 @@
 						'LINK_MODIFY_URL_VAR_MODUL_NAME' => $edit_page,
 						'SELECT' => '',
 						'SET_NONE_DISPLAY_OPTION' => ''
-						) 
+						)
 					);
 				// Add block options to the section_list
 				$template->clear_var('block_list');
@@ -268,7 +267,8 @@
 					$template->parse('block_list', 'block_block', true);
 				}
 			} else {
-				$edit_page ='<a name="'.$section['section_id'].'" href="'.ADMIN_URL.'/pages/modify.php?page_id='.$page_id.'#'.$section['section_id'].'">'.$module_name.'</a>';
+				$edit_page ='<a name="'.$section['section_id'].'" href="'.ADMIN_URL.'/pages/modify.php?page_id='.$page_id.'#'.$section['section_id'].'">'.$module_tmp.'</a>';
+                $edit_page = ( trim($module_name) == '' ) ? '<span class="module_disabled">'.$section['module'].'</span>' : $edit_page;
 				$input_attribute = 'input_small';
 				$template->set_var(array(
 						'STYLE_DISPLAY_SECTION_BLOCK' => ' style="display:none;"',
@@ -280,7 +280,7 @@
 						'NAME' => htmlentities(strip_tags($block[1])),
 						'VALUE' => 1,
 						'SET_NONE_DISPLAY_OPTION' => ''
-						) 
+						)
 					);
 			}
 			// Insert icon and images
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1337)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1338)
@@ -52,6 +52,6 @@
 
 // check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
 if(!defined('VERSION')) define('VERSION', '2.8.x');
-if(!defined('REVISION')) define('REVISION', '1337');
+if(!defined('REVISION')) define('REVISION', '1338');
 
 ?>
\ No newline at end of file
