|
From: Ken T. <ke...@us...> - 2003-04-07 18:56:14
|
Update of /cvsroot/phpbt/phpbt/inc
In directory sc8-pr-cvs1:/tmp/cvs-serv9290/inc
Modified Files:
functions.php
Log Message:
* Project-level Administration
- allows superadmin to delegate power to others.
- admin may assign multiple users to have administrative power on a project.
* new auth: have_perm_proj($proj_id); check_proj($proj);
* added <select> to project-form
* build_select(): in addition to 1-1 matching for selected, allow needle-in-haystack
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- functions.php 2 Mar 2003 15:28:54 -0000 1.38
+++ functions.php 7 Apr 2003 18:55:38 -0000 1.39
@@ -153,7 +153,8 @@
case 'owner':
$rs = $db->query("select u.user_id, login from ".TBL_AUTH_USER." u, ".TBL_USER_GROUP." ug where u.active > 0 and u.user_id = ug.user_id and ug.group_id = ".GROUP_ASSIGN_TO." order by login");
while ($rs->fetchInto($row)) {
- if ($selected == $row['user_id']) {
+ // either singular matches, or array matches are acceptable
+ if (($selected == $row['user_id']) || in_array($row['user_id'], $selected)) {
$sel = ' selected';
} else {
$sel = '';
|