diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-04-11 18:33:44 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-04-11 18:33:44 +0000 |
commit | ff301288f2ea06d76606c05bccac5957e2873a94 (patch) | |
tree | b46d9d7e56612945850281a136161967ba8bc5f2 /modules/user/user.module | |
parent | de33f74b4040cc3f7880269152b277d90b081cc8 (diff) | |
download | brdo-ff301288f2ea06d76606c05bccac5957e2873a94.tar.gz brdo-ff301288f2ea06d76606c05bccac5957e2873a94.tar.bz2 |
- Patch #348448 by mfb, c960657, marvil07, cdale, jpmckinney: fixed PHP strict warnings when running tests and for PHP 5.3.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index dc1c0c1d4..1ba829a0b 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -370,6 +370,9 @@ function user_save($account, $edit = array(), $category = 'account') { field_attach_presave('user', $edit); $edit = (array) $edit; + if (empty($account)) { + $account = new stdClass(); + } if (!isset($account->is_new)) { $account->is_new = empty($account->uid); } |