Changeset 18273 for branches/comu-ver2/data/class/helper
- Timestamp:
- 2009/09/01 12:31:58 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/helper/SC_Helper_DB.php
r18272 r18273 829 829 $category_id = (int) $category_id; 830 830 $product_id = (int) $product_id; 831 if (SC_Utils_Ex::sfIsInt($category_id)&& $this->sfIsRecord("dtb_category","category_id", $category_id)) {831 if (SC_Utils_Ex::sfIsInt($category_id) && $category_id != 0 && $this->sfIsRecord("dtb_category","category_id", $category_id)) { 832 832 $this->g_category_id = array($category_id); 833 } else if (SC_Utils_Ex::sfIsInt($product_id) && $ this->sfIsRecord("dtb_products","product_id", $product_id, $status)) {833 } else if (SC_Utils_Ex::sfIsInt($product_id) && $product_id != 0 && $this->sfIsRecord("dtb_products","product_id", $product_id, $status)) { 834 834 $objQuery = new SC_Query(); 835 835 $where = "product_id = ?"; … … 1662 1662 } 1663 1663 1664 if (!$this->g_maker_on) {1664 if (!$this->g_maker_on) { 1665 1665 $this->g_maker_on = true; 1666 1666 $maker_id = (int) $maker_id; 1667 1667 $product_id = (int) $product_id; 1668 if (SC_Utils_Ex::sfIsInt($maker_id)&& $this->sfIsRecord("dtb_maker","maker_id", $maker_id)) {1668 if (SC_Utils_Ex::sfIsInt($maker_id) && $maker_id != 0 && $this->sfIsRecord("dtb_maker","maker_id", $maker_id)) { 1669 1669 $this->g_maker_id = array($maker_id); 1670 } else if (SC_Utils_Ex::sfIsInt($product_id) && $ this->sfIsRecord("dtb_products","product_id", $product_id, $status)) {1670 } else if (SC_Utils_Ex::sfIsInt($product_id) && $product_id != 0 && $this->sfIsRecord("dtb_products","product_id", $product_id, $status)) { 1671 1671 $objQuery = new SC_Query(); 1672 1672 $where = "product_id = ?";
Note: See TracChangeset
for help on using the changeset viewer.
