Created
January 21, 2012 03:37
-
-
Save sprice/1651138 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/mongodb_session/mongodb_session.inc b/mongodb_session/mongodb_session.inc | |
| index b574982..05e08f2 100644 | |
| --- a/mongodb_session/mongodb_session.inc | |
| +++ b/mongodb_session/mongodb_session.inc | |
| @@ -105,7 +105,7 @@ function _drupal_session_read($sid) { | |
| // We found the client's session record and they are an authenticated, | |
| // active user. | |
| - if ($session && !empty($session['uid']) && $session['status'] == 1) { | |
| + if ($session && !empty($session['uid'])) { | |
| $collection = mongodb_collection('fields_current', 'user'); | |
| $user = (object) $collection->findOne(array('_id' => $session['uid'])); | |
| // Copy from SQL. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment