diff --git a/modules/user.module b/modules/user.module index 5b1de2884610f9131aa1cbca4a563a2bfa21d4b9..ffdebec9745e31373efb4410d0ad190d99b6dd96 100644 --- a/modules/user.module +++ b/modules/user.module @@ -67,6 +67,7 @@ function user_load($array = array()) { $user = db_fetch_object($result); $user = drupal_unpack($user); + $user->roles = array(); if ($user->uid) { $user->roles[DRUPAL_AUTHENTICATED_RID] = 'authenticated user'; } diff --git a/modules/user/user.module b/modules/user/user.module index 5b1de2884610f9131aa1cbca4a563a2bfa21d4b9..ffdebec9745e31373efb4410d0ad190d99b6dd96 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -67,6 +67,7 @@ function user_load($array = array()) { $user = db_fetch_object($result); $user = drupal_unpack($user); + $user->roles = array(); if ($user->uid) { $user->roles[DRUPAL_AUTHENTICATED_RID] = 'authenticated user'; }