ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Ignore:
Timestamp:
Sep 28, 2006, 7:20:16 PM (14 years ago)
Author:
ogawa
Message:

CS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp_biz/modules/admin_biz/do/biz_admin_edit_shisetsu.php

    r276 r284  
    1111    function execute($requests)
    1212    {
    13 
    14         if(!$requests['name'])
    15         {
     13        if (!$requests['name']) {
    1614            admin_biz_client_redirect('biz_shisetsu_list', '施設名を入力してください。');
    1715            exit();
    1816        }
    1917
    20         if($requests['image_filename'])
     18        if ($requests['image_filename']) {
    2119            $filename = $requests['image_filename'];
    22         else
     20        } else {
    2321            $filename = '';
     22        }
    2423
    25         if($_FILES['image_filename']['size'])
    26         {
     24        if ($_FILES['image_filename']['size']) {
    2725            $filename = biz_saveImage($_FILES['image_filename'], "s_".$sessid);
    28             if(!$filename)
    29             {
     26            if (!$filename) {
    3027                $filename = $requests['image_filename'];
    3128                admin_biz_client_redirect('biz_shisetsu_list', '画像は300KB以内のGIF・JPEG・PNGにしてください。');
     
    3633            $shisetsu = biz_getShisetsuData($requests['biz_shisetsu_id']);
    3734            biz_deleteImage($shisetsu['image_filename']);
    38 
    3935        }
    4036        t_image_clear_tmp(session_id());
     
    4642    }
    4743}
     44
    4845?>
Note: See TracChangeset for help on using the changeset viewer.