Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1329)
+++ branches/2.8.x/CHANGELOG	(revision 1330)
@@ -12,6 +12,8 @@
 
 ------------------------------------- 2.8.1 -------------------------------------
 18-Apr-2010 Dietmar Woellbrink (Luisehahne)
+!	update class.login.php
+18-Apr-2010 Dietmar Woellbrink (Luisehahne)
 !	Validation fix in preference
 18-Apr-2010 Dietmar Woellbrink (Luisehahne)
 #	fixed directory_list
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1329)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1330)
@@ -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', '1329');
+if(!defined('REVISION')) define('REVISION', '1330');
 
 ?>
\ No newline at end of file
Index: branches/2.8.x/wb/framework/class.login.php
===================================================================
--- branches/2.8.x/wb/framework/class.login.php	(revision 1329)
+++ branches/2.8.x/wb/framework/class.login.php	(revision 1330)
@@ -139,7 +139,7 @@
 			}
 		}
 	}
-	
+
 	// Authenticate the user (check if they exist in the database)
 	function authenticate() {
 		global $database;
@@ -151,7 +151,7 @@
 		$results = $database->query($query);
 		$results_array = $results->fetchRow();
 		$num_rows = $results->numRows();
-		if($num_rows) {
+		if($num_rows == 1) {
 			$user_id = $results_array['user_id'];
 			$this->user_id = $user_id;
 			$_SESSION['USER_ID'] = $user_id;
