- Timestamp:
- 2007/10/30 17:30:45 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/helper/SC_Helper_DB.php
r16598 r16615 715 715 * 716 716 */ 717 function sfGetCategoryId($product_id, $category_id = 0) { 717 function sfGetCategoryId($product_id, $category_id = 0, $closed = false) { 718 if ($closed) { 719 $status = ""; 720 } else { 721 $status = "status = 1"; 722 } 718 723 719 724 if(!$this->g_category_on) { … … 723 728 if(SC_Utils_Ex::sfIsInt($category_id) && $this->sfIsRecord("dtb_category","category_id", $category_id)) { 724 729 $this->g_category_id = array($category_id); 725 } else if (SC_Utils_Ex::sfIsInt($product_id) && $this->sfIsRecord("dtb_products","product_id", $product_id, "status = 1")) {730 } else if (SC_Utils_Ex::sfIsInt($product_id) && $this->sfIsRecord("dtb_products","product_id", $product_id, $status)) { 726 731 $objQuery = new SC_Query(); 727 732 $where = "product_id = ?";
Note: See TracChangeset
for help on using the changeset viewer.