Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 11:24 am EST

Geeklog Forums

Small bug


Mickey Coggins

Anonymous
Found a small bug - probably just a typo:

Text Formatted Code

*** search.class.php.new        Sat May 20 18:22:59 2006
--- search.class.php.orig       Sat May 20 18:22:14 2006
***************
*** 98,104 ****
      * @access private
      * @var integer
      */
!     var $_per_page = -1;
 
      /**
      * Constructor
--- 98,104 ----
      * @access private
      * @var integer
      */
!     var $_per_page = 10;
 
      /**
      * Constructor


 


I would have reported it using the "Report a Bug" link to the left, but it doesn't work.

Best regards,
Mickey
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Hmm, you want to replace the 10 with -1? Why?

bye, Dirk
 Quote

Mickey Coggins

Anonymous
So this part of the code further down will work right:

Text Formatted Code

        if (isset ($_REQUEST['results'])) {
            $this->_per_page = COM_applyFilter ($_REQUEST['results'], true);
        }
        if ($this->_per_page < 1) {
            if (isset ($_CONF['num_search_results']) &&
                    ($_CONF['num_search_results'] > 0)) {
                $this->_per_page = $_CONF['num_search_results'];
            } else {
                $this->_per_page = 10;
            }
        }

 
 Quote

All times are EST. The time is now 11:24 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content