[geeklog-cvs] geeklog-1.3/public_html usersettings.php,1.74,1.75

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Sun Sep 14 18:40:58 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory geeklog_prod:/tmp/cvs-serv6679/public_html

Modified Files:
	usersettings.php 
Log Message:
Corrected so only authors (members that have contributed) are shown in multi-select list box. This was the intended behaviour

Index: usersettings.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/usersettings.php,v
retrieving revision 1.74
retrieving revision 1.75
diff -C2 -d -r1.74 -r1.75
*** usersettings.php	7 Sep 2003 23:51:35 -0000	1.74
--- usersettings.php	14 Sep 2003 22:40:56 -0000	1.75
***************
*** 506,520 ****
      if (($_CONF['contributedbyline'] == 1) &&
          ($_CONF['hide_author_exclusion'] == 0)) {
-         $result = DB_query ("SELECT DISTINCT uid FROM {$_TABLES['stories']}");
-         $nrows = DB_numRows ($result);
-         $where = '';
-         for ($i = 0; $i < $nrows; $i++) {
-             $W = DB_fetchArray ($result);
-             $where .= "uid = '$W[0]' OR ";
-         }
-         $where .= "uid = '1'";
          $preferences->set_var ('lang_authors', $LANG04[56]);
! 
!         $query = DB_query( "SELECT uid,username FROM {$_TABLES['users']} ORDER BY username" );
          $nrows = DB_numRows($query );
          $authors = explode(" ",$A['aids']);
--- 506,511 ----
      if (($_CONF['contributedbyline'] == 1) &&
          ($_CONF['hide_author_exclusion'] == 0)) {
          $preferences->set_var ('lang_authors', $LANG04[56]);
!         $query = DB_query ("SELECT DISTINCT story.uid, user.username FROM {$_TABLES['stories']} story, {$_TABLES['users']} user WHERE story.uid = user.uid ORDER BY user.username");
          $nrows = DB_numRows($query );
          $authors = explode(" ",$A['aids']);





More information about the geeklog-cvs mailing list