Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1875)
+++ branches/2.8.x/CHANGELOG	(revision 1876)
@@ -11,6 +11,9 @@
 ! = Update/Change
 ===============================================================================
 
+01 Mae-2013 Build 1876 Dietmar Woellbrink (Luisehahne)
+! wysgwyg, first try to repair missing table entries
+! page sections typofix in header
 28 Feb-2013 Build 1875 Dietmar Woellbrink (Luisehahne)
 ! wysgwyg, now check exitings table entries, otherwise script stop loading content in editor
 ! typofix in groups
Index: branches/2.8.x/wb/admin/skel/themes/htt/pages_sections.htt
===================================================================
--- branches/2.8.x/wb/admin/skel/themes/htt/pages_sections.htt	(revision 1875)
+++ branches/2.8.x/wb/admin/skel/themes/htt/pages_sections.htt	(revision 1876)
@@ -41,8 +41,8 @@
 		<td class="header_list_pubdate_start">{TEXT_PUBL_START_DATE}</td>
 		<td class="header_list_pubdate_end">{TEXT_PUBL_END_DATE}</td>
 		<td class="header_list_actions" colspan="3">{TEXT_ACTIONS}</td>
-		<td title="{TEXT_SECTION}" class="header_list_section_id">ID</td>
-		<td title="Position" class="header_list_section_id" {DISPLAY_DEBUG}>{TEXT_PID}</td>
+		<td title="{TEXT_SECTION}" class="header_list_section_id">SID</td>
+		<td title="Position" class="header_list_section_id" {DISPLAY_DEBUG}>POS</td>
 	</tr>
 </thead>
 <tbody>
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1875)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1876)
@@ -51,5 +51,5 @@
 
 // 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.3');
-if(!defined('REVISION')) define('REVISION', '1875');
+if(!defined('REVISION')) define('REVISION', '1876');
 if(!defined('SP')) define('SP', '');
Index: branches/2.8.x/wb/modules/wysiwyg/modify.php
===================================================================
--- branches/2.8.x/wb/modules/wysiwyg/modify.php	(revision 1875)
+++ branches/2.8.x/wb/modules/wysiwyg/modify.php	(revision 1876)
@@ -27,11 +27,20 @@
 // Get page content
 $sql = 'SELECT `content` FROM `'.TABLE_PREFIX.'mod_wysiwyg` WHERE `section_id`='.(int)$section_id;
 if ( ($content = $database->get_one($sql)) !== null  ) {
-	$content = htmlspecialchars(str_replace('{SYSVAR:MEDIA_REL}', $sMediaUrl, $content));
+ $content = htmlspecialchars(str_replace('{SYSVAR:MEDIA_REL}', $sMediaUrl, $content));
 } else {
-	throw new AppException('Database: missing entry in table \''.TABLE_PREFIX.'mod_wysiwyg\' for section_id='.$section_id);
+ $content = 'There is an relation error in the database.';
+ $sql = 'INSERT INTO `'.TABLE_PREFIX.'mod_wysiwyg` SET '
+      .     '`section_id`='.$section_id.', '
+      .     '`page_id`='.$page_id.', '
+      .     '`content`=\''.$content.'\', '
+      .     '`text`=\''.$content.'\'';
+ if($database->query($sql)) {
+  $content .= ' WebsiteBaker has solved this problem successful.';
+ }else {
+  throw new AppException('Database: missing entry in table \''.TABLE_PREFIX.'mod_wysiwyg\' for section_id='.$section_id);
+ }
 }
-
 if(!isset($wysiwyg_editor_loaded)) {
 	$wysiwyg_editor_loaded=true;
 	if(!function_exists('show_wysiwyg_editor'))
