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

Changeset 2888


Ignore:
Timestamp:
May 14, 2007, 7:16:33 PM (12 years ago)
Author:
ebihara
Message:

#720:携帯版BIZのスケジュール登録・編集時の日時指定が正しくなかったバグの修正

Location:
OpenPNE/branches/2.6.x/webapp_biz/modules/ktai_biz
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/2.6.x/webapp_biz/modules/ktai_biz/do/fh_biz_schedule_edit.php

    r1775 r2888  
    1515            handle_kengen_error();
    1616        }
    17        
     17
     18        $requests['sc_b_year'] = $requests['sc_b_year'] + 2000;
     19
    1820        //ERROR----------------
    1921        //存在しない日付
  • OpenPNE/branches/2.6.x/webapp_biz/modules/ktai_biz/do/fhg_biz_schedule_add.php

    r1775 r2888  
    1717        }
    1818
     19        $requests['sc_b_year'] = $requests['sc_b_year'] + 2000;
     20
    1921        //ERROR----------------
    2022        //存在しない日付
    2123        if (!checkdate($requests['sc_b_month'], $requests['sc_b_date'], $requests['sc_b_year'])) {
     24
    2225            $redirect_script = '?m=ktai_biz&a=page_fh_biz_schedule_add&'.$tail;
    2326            $msg = '存在しない日付が指定されました。';
  • OpenPNE/branches/2.6.x/webapp_biz/modules/ktai_biz/page/fh_biz_schedule_edit.php

    r1775 r2888  
    2727
    2828        //日付・時刻を出す
    29         $begin_year = date("y", strtotime($requests['begin_date']));
    30         $begin_month = date("m", strtotime($requests['begin_date']));
    31         $begin_day = date("j", strtotime($requests['begin_date']));
     29        if (!is_null($requests['begin_date'])) {
     30            $begin_year = date("y", strtotime($requests['begin_date']));
     31            $begin_month = date("m", strtotime($requests['begin_date']));
     32            $begin_day = date("j", strtotime($requests['begin_date']));
     33        }
    3234
    33         $begin_hour = date("G", strtotime($requests['begin_time']));
    34         $begin_min = date("i", strtotime($requests['begin_time']));
    35         $finish_hour = date("G", strtotime($requests['finish_time']));
    36         $finish_min = date("i", strtotime($requests['finish_time']));
     35        if (!is_null($requests['begin_time'])) {
     36            $begin_hour = date("G", strtotime($requests['begin_time']));
     37            $begin_min = date("i", strtotime($requests['begin_time']));
     38        }
     39
     40        if (!is_null($requests['finish_time'])) {
     41            $finish_hour = date("G", strtotime($requests['finish_time']));
     42            $finish_min = date("i", strtotime($requests['finish_time']));
     43        }
    3744
    3845        $j_members = unserialize($requests['members']);
Note: See TracChangeset for help on using the changeset viewer.