From 028c8e60504546b1ad2342f168bbf5bf3d25f618 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sun, 24 Jun 2007 00:38:40 +0000 Subject: #148678: Fix notices/warnings on invalid paths like 'node/zzz'. (chx/pwolanin/webernet) --- modules/user/user.module | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/user/user.module') diff --git a/modules/user/user.module b/modules/user/user.module index 48b7c9034..0f95e10d1 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -130,6 +130,9 @@ function user_load($array = array()) { if (is_numeric($array)) { $array = array('uid' => $array); } + elseif (!is_array($array)) { + return FALSE; + } foreach ($array as $key => $value) { if ($key == 'uid' || $key == 'status') { -- cgit v1.2.3