From 031e4d420891a4a7b9e3b18623cae4e2400b7691 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 17 May 2001 20:50:15 +0000 Subject: - Tidied up the field_get() API and improved the implementation of both field_set() and field_get(). --- includes/user.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/user.inc') 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); } -- cgit v1.2.3