Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

298
 
377
 
377
 
search.php
_> 132132     }
  133133 
  134134     function &execute() {
<> 135 -      global $osC_Database, $osC_Customer, $osC_Currencies;
   135+      global $osC_Database, $osC_Customer, $osC_Currencies, $osC_Language;
136136 
  137137       $Qlisting = $osC_Database->query('select SQL_CALC_FOUND_ROWS distinct p.*, pd.*, m.*, if(s.status, s.specials_new_products_price, null) as specials_new_products_price, if(s.status, s.specials_new_products_price, p.products_price) as final_price');
  138138 
     
 !
167167       $Qlisting->bindTable(':table_products_to_categories', TABLE_PRODUCTS_TO_CATEGORIES);
  168168 
  169169       $Qlisting->appendQuery('where p.products_status = 1 and p.products_id = pd.products_id and pd.language_id = :language_id and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id');
<> 170 -      $Qlisting->bindInt(':language_id', $_SESSION['languages_id']);
   170+      $Qlisting->bindInt(':language_id', $osC_Language->getID());
171171 
  172172       if ($this->hasCategory()) {
  173173         if ($this->isRecursive()) {
     
 !
185185           $Qlisting->appendQuery(')');
  186186         } else {
  187187           $Qlisting->appendQuery('and p2c.products_id = p.products_id and p2c.products_id = pd.products_id and pd.language_id = :language_id and p2c.categories_id = :categories_id');
<> 188 -          $Qlisting->bindInt(':language_id', $_SESSION['languages_id']);
   188+          $Qlisting->bindInt(':language_id', $osC_Language->getID());
<_ 189189           $Qlisting->bindInt(':categories_id', $this->_category);
  190190         }
  191191       }