- Timestamp:
- 2014/06/03 14:51:51 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/helper/SC_Helper_DB.php
r23477 r23503 387 387 $sql = 'SELECT category_name FROM dtb_category WHERE category_id = ?'; 388 388 $arrVal = array($val); 389 $CatName = $objQuery->getOne($sql, $arrVal);389 $CatName = $objQuery->getOne($sql, $arrVal); 390 390 $ConbName .= $CatName . ' | '; 391 391 } … … 413 413 $sql = 'SELECT category_name FROM dtb_category WHERE category_id = ?'; 414 414 $arrVal = array($arrRet['id']); 415 $arrRet['name'] = $objQuery->getOne($sql, $arrVal);415 $arrRet['name'] = $objQuery->getOne($sql, $arrVal); 416 416 417 417 return $arrRet; … … 673 673 //まずテーブル内容の元を取得 674 674 if (!$is_force_all_count) { 675 $arrCategoryCountOld = $objQuery->select('category_id,product_count', 'dtb_category_count');675 $arrCategoryCountOld = $objQuery->select('category_id,product_count', 'dtb_category_count'); 676 676 } else { 677 677 $arrCategoryCountOld = array(); … … 1386 1386 $maker_id = (int) $maker_id; 1387 1387 $product_id = (int) $product_id; 1388 if (SC_Utils_Ex::sfIsInt($maker_id) && $maker_id != 0 && $this->sfIsRecord('dtb_maker', 'maker_id', $maker_id)) {1388 if (SC_Utils_Ex::sfIsInt($maker_id) && $maker_id != 0 && $this->sfIsRecord('dtb_maker', 'maker_id', $maker_id)) { 1389 1389 $this->g_maker_id = array($maker_id); 1390 } elseif (SC_Utils_Ex::sfIsInt($product_id) && $product_id != 0 && $this->sfIsRecord('dtb_products', 'product_id', $product_id, $status)) {1390 } elseif (SC_Utils_Ex::sfIsInt($product_id) && $product_id != 0 && $this->sfIsRecord('dtb_products', 'product_id', $product_id, $status)) { 1391 1391 $objQuery =& SC_Query_Ex::getSingletonInstance(); 1392 1392 $maker_id = $objQuery->getCol('maker_id', 'dtb_products', 'product_id = ?', array($product_id));
Note: See TracChangeset
for help on using the changeset viewer.
