[geeklog-cvs] geeklog-1.3/system lib-security.php,1.16,1.17

dhaun at geeklog.net dhaun at geeklog.net
Sun Sep 28 09:20:07 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/system
In directory geeklog_prod:/tmp/cvs-serv3088

Modified Files:
	lib-security.php 
Log Message:
Avoid SELECT *


Index: lib-security.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/system/lib-security.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** lib-security.php	1 Sep 2003 19:01:07 -0000	1.16
--- lib-security.php	28 Sep 2003 13:20:04 -0000	1.17
***************
*** 218,224 ****
  
  /**
! * Checks to see if current user has access to view a topic
  *
! * Checks to see if current user has access to view a topic
  *
  * @param        string      $tid        ID for topic to check on
--- 218,224 ----
  
  /**
! * Checks to see if current user has access to a topic
  *
! * Checks to see if current user has access to a topic
  *
  * @param        string      $tid        ID for topic to check on
***************
*** 234,238 ****
      }
  
!     $result = DB_query("SELECT * FROM {$_TABLES["topics"]} WHERE tid = '$tid'");
      $A = DB_fetchArray($result);
  
--- 234,238 ----
      }
  
!     $result = DB_query("SELECT owner_id,group_id,perm_owner,perm_group,perm_members,perm_anon FROM {$_TABLES['topics']} WHERE tid = '$tid'");
      $A = DB_fetchArray($result);
  





More information about the geeklog-cvs mailing list