|
From: Benjamin C. <bc...@us...> - 2004-07-03 13:19:15
|
Update of /cvsroot/phpbt/phpbt/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9695/inc Modified Files: Tag: htmltemplates functions.php Log Message: Fixed a bug with choosing a reporter when creating a bug Index: functions.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v retrieving revision 1.44.2.8 retrieving revision 1.44.2.9 diff -u -r1.44.2.8 -r1.44.2.9 --- functions.php 3 Jul 2004 13:08:42 -0000 1.44.2.8 +++ functions.php 3 Jul 2004 13:19:07 -0000 1.44.2.9 @@ -174,10 +174,11 @@ break; case 'reporter': global $u; + $selected = $selected ? $selected : $u; $rs = $db->query("select u.user_id, login from ".TBL_AUTH_USER." u where u.active > 0 order by login"); while ($rs->fetchInto($row)) { // either singular matches, or array matches are acceptable - if ($u == $row['user_id']) { + if ($selected == $row['user_id']) { $sel = ' selected'; } else { $sel = ''; |