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

Changeset 8326


Ignore:
Timestamp:
Sep 12, 2008, 2:41:38 PM (11 years ago)
Author:
shingo
Message:

#2373:biz_deleteShisetsuImage() と biz_deleteGroupImage() は db_update() を使う形に変更

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp_biz/modules/biz/lib/mysql_functions.php

    r8317 r8326  
    12761276function biz_deleteGroupImage($id, $filename)
    12771277{
    1278     $sql = 'UPDATE biz_group SET image_filename = \'\' WHERE biz_group_id = ?';
    1279     $params = array(
    1280         intval($id),
    1281     );
    1282     db_query($sql, $params);
     1278    $data = array('image_filename' => '');
     1279    $where = array('biz_group_id' => intval($id));
     1280    db_update('biz_group', $data, $where);
     1281
    12831282    biz_deleteImage($filename);
    12841283}
     
    12861285function biz_deleteShisetsuImage($id, $filename)
    12871286{
    1288     $sql = 'UPDATE biz_shisetsu SET image_filename = \'\' WHERE biz_shisetsu_id = ?';
    1289 
    1290     $params = array(
    1291         intval($id),
    1292     );
    1293 
    1294     db_query($sql, $params);
     1287    $data = array('image_filename' => '');
     1288    $where = array('biz_shisetsu_id' => intval($id));
     1289    db_update('biz_shisetsu', $data, $where);
     1290
    12951291    biz_deleteImage($filename);
    12961292}
Note: See TracChangeset for help on using the changeset viewer.