Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
narfbg committed Dec 17, 2012
1 parent ae9c488 commit 7854a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/libraries/Session/drivers/Session_cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ protected function _sess_read()
}

// No result? Kill it!
if ($query->num_rows() === 0)
if (empty($query) OR $query->num_rows() === 0)
{
$this->sess_destroy();
return FALSE;
Expand Down

0 comments on commit 7854a66

Please sign in to comment.