From 8a409b7abebdb5da1d9c6be4de9e40249f6a2252 Mon Sep 17 00:00:00 2001 From: e107steved Date: Sun, 9 Dec 2007 22:38:41 +0000 Subject: [PATCH] Possible fix for Bugtracker #4223 - userclasses getting lost --- usersettings.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/usersettings.php b/usersettings.php index c05ce8a45..1de988c83 100644 --- a/usersettings.php +++ b/usersettings.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/usersettings.php,v $ -| $Revision: 1.16 $ -| $Date: 2007-10-30 22:34:32 $ +| $Revision: 1.17 $ +| $Date: 2007-12-09 22:38:27 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -548,6 +548,10 @@ if($curVal['user_admin'] == 1) { $tmp[] = e_UC_ADMIN; } +if (strpos($curVal['user_perms'],'0') === 0) +{ + $tmp[] = e_UC_MAINADMIN; +} $curVal['userclass_list'] = implode(",", $tmp); if($_POST)