Skip to content

Commit

Permalink
Merge pull request #1 from chrigu99/master
Browse files Browse the repository at this point in the history
Little corrections
  • Loading branch information
sprain committed Oct 5, 2011
2 parents ed2cf62 + 466a84b commit cd9d779
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion SessionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ public function setDbDetails($dbHost, $dbUser, $dbPassword, $dbDatabase){
* @param object $dbConnection expects MySQLi object
*/
public function setDbConnection($dbConnection){

$this->dbConnection = $dbConnection;

}


Expand All @@ -59,7 +61,9 @@ public function setDbConnection($dbConnection){
* @param object $dbConnection expects MySQLi object
*/
public function setDbTable($dbTable){

$this->dbTable = $dbTable;

}


Expand Down Expand Up @@ -98,9 +102,14 @@ public function read($id) {
if ($result->num_rows && $result->num_rows > 0) {
$record = $result->fetch_assoc();
return $record['data'];
} else {
return false;
}
} else {
return false;
}
return '';
return true;

}


Expand Down

0 comments on commit cd9d779

Please sign in to comment.