From 65dbaa60c26a1a64b0d7ababb58f2a22342bf42a Mon Sep 17 00:00:00 2001 From: vdigital Date: Mon, 19 Nov 2007 20:12:22 +0000 Subject: Add is_generic function git-svn-id: http://piwigo.org/svn/trunk@2163 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_user.inc.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php index 262b11d8b..148c01dc7 100644 --- a/include/functions_user.inc.php +++ b/include/functions_user.inc.php @@ -1143,22 +1143,23 @@ function check_status($access_type, $user_status = '') } /* - * Return if user is only a guest + * Return if user is generic * @return bool */ - function is_a_guest($user_status = '') + function is_generic($user_status = '') { - return get_user_status($user_status) == 'guest'; + return get_user_status($user_status) == 'generic'; } /* - * Return if user is generic + * Return if user is only a guest * @return bool */ - function is_generic($user_status = '') + function is_a_guest($user_status = '') { - return get_user_status($user_status) == 'generic'; + return get_user_status($user_status) == 'guest'; } + /* * Return if user is, at least, a classic user * @return bool -- cgit v1.2.3