Created
January 21, 2012 06:15
-
-
Save sprice/1651655 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..b69a157 100644 | |
| --- a/mongodb_session/mongodb_session.inc | |
| +++ b/mongodb_session/mongodb_session.inc | |
| @@ -107,7 +107,8 @@ function _drupal_session_read($sid) { | |
| // active user. | |
| if ($session && !empty($session['uid'])) { | |
| $collection = mongodb_collection('fields_current', 'user'); | |
| - $user = (object) $collection->findOne(array('_id' => $session['uid'])); | |
| + $user = $collection->findOne(array('_id' => $session['uid'])); | |
| + $user = (object) array_merge($session, $user); | |
| // Copy from SQL. | |
| if (!isset($user->uid)) { | |
| include_once dirname(__FILE__) . '/mongodb_session.module'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment