diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/user.module | 3 | ||||
-rw-r--r-- | modules/user/user.module | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/user.module b/modules/user.module index 92232a1df..5ddc07849 100644 --- a/modules/user.module +++ b/modules/user.module @@ -193,12 +193,13 @@ function user_save($account, $array = array(), $category = 'account') { } // Save distributed authentication mappings + $authmaps = array(); foreach ($array as $key => $value) { if (substr($key, 0, 4) == 'auth') { $authmaps[$key] = $value; } } - if ($authmaps) { + if (sizeof($authmaps) > 0) { user_set_authmaps($user, $authmaps); } diff --git a/modules/user/user.module b/modules/user/user.module index 92232a1df..5ddc07849 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -193,12 +193,13 @@ function user_save($account, $array = array(), $category = 'account') { } // Save distributed authentication mappings + $authmaps = array(); foreach ($array as $key => $value) { if (substr($key, 0, 4) == 'auth') { $authmaps[$key] = $value; } } - if ($authmaps) { + if (sizeof($authmaps) > 0) { user_set_authmaps($user, $authmaps); } |