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

Changeset 10161


Ignore:
Timestamp:
Jan 15, 2009, 12:37:29 PM (11 years ago)
Author:
ogawa
Message:

#3443:c_scheduleのstart_time, end_timeがNOT NULLでも動作するよう修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/lib/db/schedule.php

    r6630 r10161  
    100100        'body' => $body,
    101101        'start_date' => $start_date,
    102         'start_time' => $start_time,
    103102        'end_date' => $end_date,
    104         'end_time' => $end_time,
    105103        'u_datetime' => db_now(),
    106104        'is_receive_mail' => (bool)$is_receive_mail,
    107105    );
     106    if (!is_null($start_time)) {
     107        $data['start_time'] = $start_time;
     108    }
     109    if (!is_null($end_time)) {
     110        $data['end_time'] = $end_time;
     111    }
    108112    return db_insert('c_schedule', $data);
    109113}
Note: See TracChangeset for help on using the changeset viewer.