[geeklog-cvs] geeklog-1.3/system/classes search.class.php,1.16,1.17

blaine at geeklog.net blaine at geeklog.net
Thu Jan 1 14:50:49 EST 2004


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

Modified Files:
	search.class.php 
Log Message:
Added change to not show links if search query is empty. So now doing a search on site member like Find all Postings by ... will not show all the links on the site. Adding a search word will include any links that match the query as expected.

Index: search.class.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/system/classes/search.class.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** search.class.php	30 Dec 2003 15:51:31 -0000	1.16
--- search.class.php	1 Jan 2004 19:50:46 -0000	1.17
***************
*** 433,437 ****
  
          // Build SQL
!         if (($this->_type == 'links') OR ($this->_type == 'all')) {
              $sql = "SELECT lid,title,description,url,hits,group_id,owner_id,perm_owner,perm_group,perm_members,perm_anon FROM {$_TABLES['links']} WHERE ";
      
--- 433,437 ----
  
          // Build SQL
!         if ( $this->_query != "" AND (($this->_type == 'links') OR ($this->_type == 'all')) ) {
              $sql = "SELECT lid,title,description,url,hits,group_id,owner_id,perm_owner,perm_group,perm_members,perm_anon FROM {$_TABLES['links']} WHERE ";
      





More information about the geeklog-cvs mailing list