Changeset 15556


Ignore:
Timestamp:
2007/09/01 21:15:03 (13 years ago)
Author:
nanasess
Message:

未定義変数の修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/admin/products/LC_Page_Admin_Products_Product.php

    r15554 r15556  
    182182        case 'confirm_return': 
    183183            // 規格登録ありなし判定 
    184             $this->tpl_nonclass = lfCheckNonClass($_POST['product_id']); 
     184            $this->tpl_nonclass = $this->lfCheckNonClass($_POST['product_id']); 
    185185            $this->lfProductPage();     // 商品登録ページ 
    186186            break; 
     
    248248            $commentkey = "recommend_comment" . $i; 
    249249 
     250            if (!isset($_POST[$delkey])) $_POST[$delkey] = null; 
     251 
    250252            if((isset($_POST[$keyname]) && !empty($_POST[$keyname])) && $_POST[$delkey] != 1) { 
    251253                $arrRet = $objQuery->select("main_list_image, product_code_min, name", "vw_products_allclass AS allcls", "product_id = ?", array($_POST[$keyname])); 
     
    268270            $commentkey = "recommend_comment" . $i; 
    269271            $deletekey = "recommend_delete" . $i; 
     272 
     273            if (!isset($arrList[$deletekey])) $arrList[$deletekey] = null; 
     274 
    270275            if($arrList[$keyname] != "" && $arrList[$deletekey] != '1') { 
    271276                $sqlval['recommend_product_id'] = $arrList[$keyname]; 
     
    557562 
    558563        for ($cnt = 1; $cnt <= RECOMMEND_PRODUCT_MAX; $cnt++) { 
    559             if($_POST["recommend_id$cnt"] != "" && $_POST["recommend_delete$cnt"] != 1) { 
     564 
     565            if (!isset($_POST["recommend_delete$cnt"]))  $_POST["recommend_delete$cnt"] = ""; 
     566 
     567            if(isset($_POST["recommend_id$cnt"]) 
     568               && $_POST["recommend_id$cnt"] != "" 
     569               && $_POST["recommend_delete$cnt"] != 1) { 
    560570                $objErr->doFunc(array("おすすめ商品コメント$cnt", "recommend_comment$cnt", LTEXT_LEN), array("SPTAB_CHECK", "MAX_LENGTH_CHECK")); 
    561571            } 
Note: See TracChangeset for help on using the changeset viewer.