From 78317bca79f0fd308029f6dcaf3b172deeb5df85 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 11 Aug 2005 13:52:44 +0000 Subject: - Patch #27897 by kubaZygmunt: fixed PHP warning. --- modules/user/user.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/user/user.module') 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); } -- cgit v1.2.3