Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

500
 
895
 
895
 
recently_visited.php
_> 11 <?php
  22 /*
  33   $Id: $
<>  4+
45   osCommerce, Open Source E-Commerce Solutions
  56   http://www.oscommerce.com
  67 
<> 7 -  Copyright (c) 2005 osCommerce
   8+  Copyright (c) 2006 osCommerce
89 
  910   Released under the GNU General Public License
  1011 */
     
 !
116117     }
  117118 
  118119     function hasProducts() {
<> 119 -      if (isset($this->visits['products']) && (empty($this->visits['products']) === false)) {
  120 -        return true;
  121 -      }
  122 -
  123 -      return false;
   120+      return ( (SERVICE_RECENTLY_VISITED_SHOW_PRODUCTS == '1') && isset($this->visits['products']) && !empty($this->visits['products']) );
124121     }
  125122 
  126123     function getProducts() {
     
 !
154151     }
  155152 
  156153     function hasCategories() {
<> 157 -      if (isset($this->visits['categories']) && (empty($this->visits['categories']) === false)) {
  158 -        return true;
  159 -      }
  160 -
  161 -      return false;
   154+      return ( (SERVICE_RECENTLY_VISITED_SHOW_CATEGORIES == '1') && isset($this->visits['categories']) && !empty($this->visits['categories']) );
162155     }
  163156 
  164157     function getCategories() {
     
 !
194187     }
  195188 
  196189     function hasSearches() {
<> 197 -      if (isset($this->visits['searches']) && (empty($this->visits['searches']) === false)) {
  198 -        return true;
  199 -      }
  200 -
  201 -      return false;
   190+      return ( (SERVICE_RECENTLY_VISITED_SHOW_SEARCHES == '1') && isset($this->visits['searches']) && !empty($this->visits['searches']) );
<_ 202191     }
  203192 
  204193     function getSearches() {