Project

General

Profile

« Previous | Next » 

Revision 1330

Added by Dietmar over 14 years ago

update class.login.php

View differences:

class.login.php
139 139
			}
140 140
		}
141 141
	}
142
	
142

  
143 143
	// Authenticate the user (check if they exist in the database)
144 144
	function authenticate() {
145 145
		global $database;
......
151 151
		$results = $database->query($query);
152 152
		$results_array = $results->fetchRow();
153 153
		$num_rows = $results->numRows();
154
		if($num_rows) {
154
		if($num_rows == 1) {
155 155
			$user_id = $results_array['user_id'];
156 156
			$this->user_id = $user_id;
157 157
			$_SESSION['USER_ID'] = $user_id;

Also available in: Unified diff