- Patch #27897 by kubaZygmunt: fixed PHP warning.

4.7.x
Dries Buytaert 2005-08-11 13:52:44 +00:00
parent 31741b2c99
commit 78317bca79
2 changed files with 4 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}