From: Eloi G. <ada...@us...> - 2004-10-02 10:44:13
|
Update of /cvsroot/phpwsbb/phpwsbb/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1610/class Modified Files: Forum.php Log Message: Fixed Bug Report [1038349] "1.0.0 CVS: moderators listed twice" Index: Forum.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Forum.php,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** Forum.php 23 Sep 2004 17:44:31 -0000 1.31 --- Forum.php 2 Oct 2004 10:43:59 -0000 1.32 *************** *** 270,274 **** } // Create list of eligible moderators (those that can edit messages) ! $eligible_mods = $GLOBALS['core']->query('SELECT u.username,u.user_id FROM ' . $GLOBALS['core']->tbl_prefix . 'mod_users AS u LEFT JOIN ' . $GLOBALS['core']->tbl_prefix . 'mod_user_uservar AS v ON ( v.user_id = u.user_id) WHERE u.deity OR (u.admin_switch AND v.varName="MOD_phpwsbb" AND (v.varValue LIKE "%edit_forums%" OR v.varValue LIKE "%edit_messages%")) ORDER BY u.username ASC'); if($eligible_mods) { $tags['MODERATORS_LABEL'] = $_SESSION['translate']->it('Choose moderators for this forum'); --- 270,274 ---- } // Create list of eligible moderators (those that can edit messages) ! $eligible_mods = $GLOBALS['core']->query('SELECT u.username,u.user_id FROM ' . $GLOBALS['core']->tbl_prefix . 'mod_users AS u LEFT JOIN ' . $GLOBALS['core']->tbl_prefix . 'mod_user_uservar AS v ON ( v.user_id = u.user_id) WHERE u.deity OR (u.admin_switch AND v.varName="MOD_phpwsbb" AND (v.varValue LIKE "%edit_forums%" OR v.varValue LIKE "%edit_messages%")) GROUP BY u.username ORDER BY u.username ASC'); if($eligible_mods) { $tags['MODERATORS_LABEL'] = $_SESSION['translate']->it('Choose moderators for this forum'); |