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

Changeset 8316


Ignore:
Timestamp:
Sep 12, 2008, 10:40:58 AM (12 years ago)
Author:
shingo
Message:

#2373:画像の削除に_db_admin_empty_filenameを使用・UPDATE 文内のimage_filename が 0 になっているところをに修正

Location:
OpenPNE/branches/stable-2.12.x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.12.x/webapp/modules/admin/lib/db_admin.php

    r8300 r8316  
    504504
    505505    if ($prefix = 'biz') {
    506         $data = array('image_filename' => '');
    507         $where = array('image_filename' => $image_filename);
    508         db_update('biz_group', $data, $where);
    509 
    510         $data = array('image_filename' => '');
    511         $where = array('image_filename' => $image_filename);
    512         db_update('biz_shisetsu', $data, $where);
     506        $tbl = 'biz_group';
     507        _db_admin_empty_filename($tbl, $image_filename);
     508
     509        $tbl = 'biz_shisetsu';
     510        _db_admin_empty_filename($tbl, $image_filename);
    513511    }
    514512}
  • OpenPNE/branches/stable-2.12.x/webapp_biz/modules/biz/lib/mysql_functions.php

    r8303 r8316  
    12761276function biz_deleteGroupImage($id, $filename)
    12771277{
    1278     $sql = 'UPDATE biz_group SET image_filename = \'0\' WHERE biz_group_id = ?';
     1278    $sql = 'UPDATE biz_group SET image_filename = \'\' WHERE biz_group_id = ?';
    12791279    $params = array(
    12801280        intval($id),
     
    12861286function biz_deleteShisetsuImage($id, $filename)
    12871287{
    1288     $sql = 'UPDATE biz_shisetsu SET image_filename = \'0\' WHERE biz_shisetsu_id = ?';
     1288    $sql = 'UPDATE biz_shisetsu SET image_filename = \'\' WHERE biz_shisetsu_id = ?';
    12891289
    12901290    $params = array(
Note: See TracChangeset for help on using the changeset viewer.