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

Changeset 2940


Ignore:
Timestamp:
May 17, 2007, 2:42:36 PM (12 years ago)
Author:
ebihara
Message:

#793:予定削除関数biz_deleteSchedule()の不要部分を削除

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/2.6.x/webapp_biz/modules/biz/lib/mysql_functions.php

    r2938 r2940  
    892892
    893893//スケジュール削除
    894 function biz_deleteSchedule($id, $group = false)
    895 {
    896     if ($group) {
    897         $sql = 'SELECT first_id FROM biz_schedule WHERE biz_schedule_id = ?';
    898         $params = array(intval($id));
    899         $firstid = db_get_one($sql, $params);
    900 
    901         $sql = 'SELECT biz_schedule_id FROM biz_schedule WHERE first_id = ?';
    902         $params = array(intval($firstid));
    903         $schedules = db_get_col($sql, $params);
    904 
    905         $sql = 'DELETE FROM biz_schedule WHERE first_id = ?';
    906         $params = array(intval($firstid));
    907         db_query($sql, $params);
    908 
    909         foreach ($schedules as $nowid) {
    910             $sql = 'DELETE FROM biz_schedule_member WHERE biz_schedule_id = ?';
    911             $params = array(intval($nowid));
    912             db_query($sql, $params);
    913         }
    914     } else {
    915         $sql = 'DELETE FROM biz_schedule WHERE biz_schedule_id = ?';
    916         $params = array(
    917             intval($id),
    918         );
    919         db_query($sql, $params);
    920         $sql = 'DELETE FROM biz_schedule_member WHERE biz_schedule_id = ?';
    921         $params = array(
    922             intval($id),
    923         );
    924         db_query($sql, $params);
    925     }
     894function biz_deleteSchedule($id)
     895{
     896    $sql = 'DELETE FROM biz_schedule WHERE biz_schedule_id = ?';
     897    $params = array(
     898        intval($id),
     899    );
     900    db_query($sql, $params);
     901    $sql = 'DELETE FROM biz_schedule_member WHERE biz_schedule_id = ?';
     902    $params = array(
     903        intval($id),
     904    );
     905    db_query($sql, $params);
    926906}
    927907
Note: See TracChangeset for help on using the changeset viewer.