From 78317bca79f0fd308029f6dcaf3b172deeb5df85 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 11 Aug 2005 13:52:44 +0000 Subject: [PATCH] - Patch #27897 by kubaZygmunt: fixed PHP warning. --- modules/user.module | 3 ++- modules/user/user.module | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/user.module b/modules/user.module index 92232a1dfe7..5ddc0784950 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 92232a1dfe7..5ddc0784950 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); }