diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-05-17 20:50:15 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-05-17 20:50:15 +0000 |
commit | 031e4d420891a4a7b9e3b18623cae4e2400b7691 (patch) | |
tree | f4d7e1f574bcab7383e86680273e5b60cf5a373f /includes/user.inc | |
parent | e5c7aefa5bea9bb4153155e414279985ccc8e0e5 (diff) | |
download | brdo-031e4d420891a4a7b9e3b18623cae4e2400b7691.tar.gz brdo-031e4d420891a4a7b9e3b18623cae4e2400b7691.tar.bz2 |
- Tidied up the field_get() API and improved the implementation of
both field_set() and field_get().
Diffstat (limited to 'includes/user.inc')
-rw-r--r-- | includes/user.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/user.inc b/includes/user.inc index 74254dc2b..307a3f33c 100644 --- a/includes/user.inc +++ b/includes/user.inc @@ -54,7 +54,7 @@ function user_save($account, $array) { function user_access($account, $section = 0) { global $user; - if ($section) return (field_get($account, "access", $section) || $account->id == 1); + if ($section) return (field_get($account->access, $section) || $account->id == 1); else return ($account->access || $account->id == 1); } |