Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

248
 
300
 
300
 
product.php
_> 3636         if ($Qproduct->numberOfRows() === 1) {
  3737           $this->_data = $Qproduct->toArray();
  3838 
<>  39+          $Qcategory = $osC_Database->query('select categories_id from :table_products_to_categories where products_id = :products_id limit 1');
   40+          $Qcategory->bindTable(':table_products_to_categories', TABLE_PRODUCTS_TO_CATEGORIES);
   41+          $Qcategory->bindInt(':products_id', $this->_data['id']);
   42+          $Qcategory->execute();
   43+
   44+          $this->_data['category_id'] = $Qcategory->valueInt('categories_id');
   45+
3946           $Qcheck = $osC_Database->query('select products_attributes_id from :table_products_attributes patrib where products_id = :products_id limit 1');
  4047           $Qcheck->bindTable(':table_products_attributes', TABLE_PRODUCTS_ATTRIBUTES);
  4148           $Qcheck->bindInt(':products_id', $this->_data['id']);
     
 !
143150       return $price;
  144151     }
  145152 
<>  153+    function getCategoryID() {
   154+      return $this->_data['category_id'];
   155+    }
   156+
<_ 146157     function hasImage() {
  147158       return (isset($this->_data['image']) && !empty($this->_data['image']));
  148159     }