Commit 78317bca authored by Dries's avatar Dries

- Patch #27897 by kubaZygmunt: fixed PHP warning.

parent 31741b2c
......@@ -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);
}
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment