|
From: Benjamin C. <bc...@us...> - 2001-09-03 15:05:33
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv24697
Modified Files:
include.php
Log Message:
Display login instead of email
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- include.php 2001/09/01 16:15:01 1.46
+++ include.php 2001/09/03 15:05:29 1.47
@@ -315,11 +315,11 @@
}
break;
case 'owner' :
- $q->query("select user_id, email from ".TBL_AUTH_USER." where user_level > 1 order by email");
+ $q->query('select u.user_id, login from '.TBL_AUTH_USER.' u, '.TBL_USER_GROUP.' ug, '.TBL_AUTH_GROUP.' g where active > 0 and u.user_id = ug.user_id and ug.group_id = g.group_id and group_name = "Developer" order by login');
while ($row = $q->grab()) {
if ($value == $row['user_id']) $sel = ' selected';
else $sel = '';
- $text .= "<option value=\"{$row['user_id']}\"$sel>{$row['email']}</option>";
+ $text .= "<option value=\"{$row['user_id']}\"$sel>{$row['login']}</option>";
}
break;
default :
|