[geeklog-cvs] geeklog-1.3/system/classes search.class.php,1.7,1.8

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Sun Jul 20 12:03:21 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/system/classes
In directory internal.geeklog.net:/tmp/cvs-serv23412/system/classes

Modified Files:
	search.class.php 
Log Message:
Corrected variable name errors with $this->_dateStart and $this->_dateEnd with datestart and dateend.

Index: search.class.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/system/classes/search.class.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** search.class.php	2 Jul 2003 18:10:57 -0000	1.7
--- search.class.php	20 Jul 2003 16:03:19 -0000	1.8
***************
*** 117,122 ****
          $this->_query = strip_tags($input_vars['query']);
          $this->_topic = $input_vars['topic'];
!         $this->_datestart = $input_vars['datestart'];
!         $this->_dateend = $input_vars['dateend'];
          $this->_author = $input_vars['author'];
          if (empty($input_vars['type'])) {
--- 117,122 ----
          $this->_query = strip_tags($input_vars['query']);
          $this->_topic = $input_vars['topic'];
!         $this->_dateStart = $input_vars['datestart'];
!         $this->_dateEnd = $input_vars['dateend'];
          $this->_author = $input_vars['author'];
          if (empty($input_vars['type'])) {
***************
*** 453,457 ****
              }
      
!             if (!empty($this->dateStart) AND !empty($this->_dateEnd)) {
                  $delim = substr($this->_dateStart, 4, 1);
                  $DS = explode($delim, $$this->_dateStart);
--- 453,457 ----
              }
      
!             if (!empty($this->_dateStart) AND !empty($this->_dateEnd)) {
                  $delim = substr($this->_dateStart, 4, 1);
                  $DS = explode($delim, $$this->_dateStart);
***************
*** 551,557 ****
       
              if (!empty($this->_dateStart) AND !empty($this->_dateEnd)) {
!                 $delim = substr($datestart, 4, 1);
!                 $DS = explode($delim, $datestart);
!                 $DE = explode($delim, $dateend);
                  $startdate = mktime(0, 0, 0, $DS[1], $DS[2], $DS[0]);
                  $enddate = mktime(23, 59, 59, $DE[1], $DE[2], $DE[0]);
--- 551,557 ----
       
              if (!empty($this->_dateStart) AND !empty($this->_dateEnd)) {
!                 $delim = substr($this->_dateStart, 4, 1);
!                 $DS = explode($delim, $this->_dateStart);
!                 $DE = explode($delim, $this->_dateEnd);
                  $startdate = mktime(0, 0, 0, $DS[1], $DS[2], $DS[0]);
                  $enddate = mktime(23, 59, 59, $DE[1], $DE[2], $DE[0]);
***************
*** 1005,1009 ****
          // Searches are done, stop timer
          $searchtime = $searchtimer->stopTimer();
!         
          // Format results
          $retval = $this->_formatResults($nrows_plugins, $total_plugins, $result_plugins, $searchtime);
--- 1005,1009 ----
          // Searches are done, stop timer
          $searchtime = $searchtimer->stopTimer();
!       
          // Format results
          $retval = $this->_formatResults($nrows_plugins, $total_plugins, $result_plugins, $searchtime);





More information about the geeklog-cvs mailing list