Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1330)
+++ branches/2.8.x/CHANGELOG	(revision 1331)
@@ -11,7 +11,9 @@
 ! = Update/Change
 
 ------------------------------------- 2.8.1 -------------------------------------
-18-Apr-2010 Dietmar Woellbrink (Luisehahne)
+20-Apr-2010 Dietmar Woellbrink (Luisehahne)
+!	update class.login.php (tks to Ruud)
+19-Apr-2010 Dietmar Woellbrink (Luisehahne)
 !	update class.login.php
 18-Apr-2010 Dietmar Woellbrink (Luisehahne)
 !	Validation fix in preference
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1330)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1331)
@@ -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', '1330');
+if(!defined('REVISION')) define('REVISION', '1331');
 
 ?>
\ 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 1330)
+++ branches/2.8.x/wb/framework/class.login.php	(revision 1331)
@@ -232,6 +232,8 @@
 			$get_ip = $_SERVER['REMOTE_ADDR'];
 			$query = "UPDATE ".$this->USERS_TABLE." SET login_when = '$get_ts', login_ip = '$get_ip' WHERE user_id = '$user_id'";
 			$database->query($query);
+		}else {
+		  $num_rows = 0;
 		}
 		// Return if the user exists or not
 		return $num_rows;
