summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2007-06-24 00:38:40 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2007-06-24 00:38:40 +0000
commit028c8e60504546b1ad2342f168bbf5bf3d25f618 (patch)
treeabff3976f64cfab51a953c05a178de43e8e03bcb /modules/user/user.module
parentb1d45297e7ea4b26c7b8f484bddae704a26e2c34 (diff)
downloadbrdo-028c8e60504546b1ad2342f168bbf5bf3d25f618.tar.gz
brdo-028c8e60504546b1ad2342f168bbf5bf3d25f618.tar.bz2
#148678: Fix notices/warnings on invalid paths like 'node/zzz'. (chx/pwolanin/webernet)
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module3
1 files changed, 3 insertions, 0 deletions
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') {