[Svn-src-all:1198] [version-2_5-dev 20086] #986 リファクタリング修正分(問題無ければ完了にします!)
yomoro
admin @ mail.ec-cube.net
2011年 2月 4日 (金) 13:58:46 JST
Subversion committed to /home/svn/open 20086
http://svn.ec-cube.net/open_trac/changeset/20086
┌────────────────────────────┐
│更新者 : yomoro │
│更新日時: 2011-02-04 13:58:46 +0900 (金, 04 2月 2011)│
└────────────────────────────┘
Log:
--------------------------------------------------------
#986 リファクタリング修正分(問題無ければ完了にします!)
Changed: [U:修正,A:追加,D:削除]
--------------------------------------------------------
U branches/version-2_5-dev/data/class/pages/frontparts/LC_Page_FrontParts_LoginCheck.php
U branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php
変更: branches/version-2_5-dev/data/class/pages/frontparts/LC_Page_FrontParts_LoginCheck.php
===================================================================
--- branches/version-2_5-dev/data/class/pages/frontparts/LC_Page_FrontParts_LoginCheck.php 2011-02-04 03:08:44 UTC (rev 20085)
+++ branches/version-2_5-dev/data/class/pages/frontparts/LC_Page_FrontParts_LoginCheck.php 2011-02-04 04:58:46 UTC (rev 20086)
@@ -78,7 +78,7 @@
$this->lfInitParam($this->objFormParam);
// リクエスト値をフォームにセット
- $objFormParam->setParam($this->lfConvertParam($_POST));
+ $this->objFormParam->setParam($this->lfConvertParam($_POST));
// モードによって分岐
switch ($this->getMode()) {
変更: branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php
===================================================================
--- branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php 2011-02-04 03:08:44 UTC (rev 20085)
+++ branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php 2011-02-04 04:58:46 UTC (rev 20086)
@@ -91,16 +91,16 @@
* @return array $arrCategoryId 選択中のカテゴリID
*/
function lfGetSelectedCategoryId() {
- // 商品ID取得
- if ( !isset($_GET['product_id']) || $_GET['product_id'] == '' || !is_numeric($_GET['product_id']) ) {
- return array(0);
+ // 商品ID取得
+ $product_id = '';
+ if ( isset($_GET['product_id']) && $_GET['product_id'] != '' && is_numeric($_GET['product_id']) ) {
+ $product_id = $_GET['product_id'];
}
- $product_id = $_GET['product_id'];
// カテゴリID取得
- if ( !isset($_GET['category_id']) || $_GET['category_id'] == '' || !is_numeric($_GET['category_id']) ) {
- return array(0);
+ $category_id = '';
+ if ( isset($_GET['category_id']) && $_GET['category_id'] != '' && is_numeric($_GET['category_id']) ) {
+ $category_id = $_GET['category_id'];
}
- $category_id = $_GET['category_id'];
// 選択中のカテゴリIDを判定する
$objDb = new SC_Helper_DB_Ex();
$arrCategoryId = $objDb->sfGetCategoryId($product_id, $category_id);
Svn-src-all メーリングリストの案内