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

Changeset 2941


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

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

File:
1 edited

Legend:

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

    r2939 r2941  
    884884
    885885//スケジュール削除
    886 function biz_deleteSchedule($id, $group = false)
    887 {
    888     if ($group) {
    889         $sql = 'SELECT first_id FROM biz_schedule WHERE biz_schedule_id = ?';
    890         $params = array(intval($id));
    891         $firstid = db_get_one($sql, $params);
    892 
    893         $sql = 'SELECT biz_schedule_id FROM biz_schedule WHERE first_id = ?';
    894         $params = array(intval($firstid));
    895         $schedules = db_get_col($sql, $params);
    896 
    897         $sql = 'DELETE FROM biz_schedule WHERE first_id = ?';
    898         $params = array(intval($firstid));
    899         db_query($sql, $params);
    900 
    901         foreach ($schedules as $nowid) {
    902             $sql = 'DELETE FROM biz_schedule_member WHERE biz_schedule_id = ?';
    903             $params = array(intval($nowid));
    904             db_query($sql, $params);
    905         }
    906     } else {
    907         $sql = 'DELETE FROM biz_schedule WHERE biz_schedule_id = ?';
    908         $params = array(
    909             intval($id),
    910         );
    911         db_query($sql, $params);
    912         $sql = 'DELETE FROM biz_schedule_member WHERE biz_schedule_id = ?';
    913         $params = array(
    914             intval($id),
    915         );
    916         db_query($sql, $params);
    917     }
     886function biz_deleteSchedule($id)
     887{
     888    $sql = 'DELETE FROM biz_schedule WHERE biz_schedule_id = ?';
     889    $params = array(
     890        intval($id),
     891    );
     892    db_query($sql, $params);
     893    $sql = 'DELETE FROM biz_schedule_member WHERE biz_schedule_id = ?';
     894    $params = array(
     895        intval($id),
     896    );
     897    db_query($sql, $params);
    918898}
    919899
Note: See TracChangeset for help on using the changeset viewer.