summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-08-11 13:52:44 +0000
committerDries Buytaert <dries@buytaert.net>2005-08-11 13:52:44 +0000
commit78317bca79f0fd308029f6dcaf3b172deeb5df85 (patch)
tree5ad5603fb0480a8c794d5404f67b97778fcf1a1a
parent31741b2c99866459da71a7c6d84b430b527161e3 (diff)
downloadbrdo-78317bca79f0fd308029f6dcaf3b172deeb5df85.tar.gz
brdo-78317bca79f0fd308029f6dcaf3b172deeb5df85.tar.bz2
- Patch #27897 by kubaZygmunt: fixed PHP warning.
-rw-r--r--modules/user.module3
-rw-r--r--modules/user/user.module3
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);
}