Changeset 16226


Ignore:
Timestamp:
2007/10/01 17:04:04 (17 years ago)
Author:
nanasess
Message:

未定義変数の修正

File:
1 edited

Legend:

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

    r16166 r16226  
    280280        $this->lfInitFile(); 
    281281 
    282         // 管理ページからの確認の場合は、非公開の商品も表示する。 
    283         if($_GET['admin'] == 'on') { 
    284             $where = "del_flg = 0"; 
    285         } else { 
    286             $where = "del_flg = 0 AND status = 1"; 
    287         } 
    288  
    289         if($_POST['mode'] != "") { 
     282        if (!isset($_POST['mode'])) $_POST['mode'] = ""; 
     283 
     284        if(!empty($_POST['mode'])) { 
    290285            $tmp_id = $_POST['product_id']; 
    291286        } else { 
     
    446441 
    447442        // 拡大画像のウィンドウサイズをセット 
    448         list($large_width, $large_height) = getimagesize(IMAGE_SAVE_DIR . basename($this->arrFile["main_large_image"]["filepath"])); 
    449         $this->tpl_large_width = $large_width + 60; 
    450         $this->tpl_large_height = $large_height + 80; 
     443        if (!empty($this->arrFile["main_large_image"])) { 
     444            list($large_width, $large_height) = getimagesize(IMAGE_SAVE_DIR . basename($this->arrFile["main_large_image"]["filepath"])); 
     445        } 
     446        $this->tpl_large_width = isset($large_width) ? $large_width + 60 : 0; 
     447        $this->tpl_large_height = isset($large_height) ? $large_height + 80 : 0; 
    451448 
    452449        $objView->assignobj($this); 
Note: See TracChangeset for help on using the changeset viewer.