Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1588)
+++ branches/2.8.x/CHANGELOG	(revision 1589)
@@ -11,6 +11,8 @@
 ! = Update/Change
 
 =========================== add small Features 2.8.2 ==========================
+25 Jan-2012 Build 1589 Dietmar Woellbrink (Luisehahne)
+# fixed starting upgrade-script if missing revision in settings
 25 Jan-2012 Build 1588 Werner v.d.Decken(DarkViper)
 # all module depending code removed, some little fixes, better integration for module-upgrade
 25 Jan-2012 Build 1587 Werner v.d.Decken(DarkViper)
Index: branches/2.8.x/wb/admin/start/index.php
===================================================================
--- branches/2.8.x/wb/admin/start/index.php	(revision 1588)
+++ branches/2.8.x/wb/admin/start/index.php	(revision 1589)
@@ -58,20 +58,19 @@
 	// check if it is neccessary to start the uograde-script
 	$sql = 'SELECT `value` FROM `'.TABLE_PREFIX.'settings` WHERE `name`=\'wb_revision\'';
 	if($wb_revision=$database->get_one($sql)) {
-		if (version_compare($wb_revision, REVISION ) < 0) {
-			if(!headers_sent()) {
-				header('Location: '.WB_URL.'/upgrade-script.php');
-			    exit;
-			} else {
-			    echo "<p style=\"text-align:center;\"> The <strong>upgrade script</strong> could not be start automatically.\n" .
-			         "Please click <a style=\"font-weight:bold;\" " .
-			         "href=\"".WB_URL."/upgrade-script.php\">on this link</a> to start the script!</p>\n";
-			    exit;
-			}
+	}
+	if (version_compare($wb_revision, REVISION ) < 0) {
+		if(!headers_sent()) {
+			header('Location: '.WB_URL.'/upgrade-script.php');
+		    exit;
 		} else {
-			$msg .= (file_exists(WB_PATH.'/upgrade-script.php') ? ''.$MESSAGE['START_UPGRADE_SCRIPT_EXISTS'].'<br />' : '');
+		    echo "<p style=\"text-align:center;\"> The <strong>upgrade script</strong> could not be start automatically.\n" .
+		         "Please click <a style=\"font-weight:bold;\" " .
+		         "href=\"".WB_URL."/upgrade-script.php\">on this link</a> to start the script!</p>\n";
+		    exit;
 		}
 	}
+	$msg .= ''.$MESSAGE['START_UPGRADE_SCRIPT_EXISTS'].'<br />';
 }
 
 // Setup template object, parse vars to it, then parse it
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1588)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1589)
@@ -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.2');
-if(!defined('REVISION')) define('REVISION', '1588');
+if(!defined('REVISION')) define('REVISION', '1589');
 if(!defined('SP')) define('SP', 'SP2');
