Changeset 60 for pro-bachkim-filespace


Ignore:
Timestamp:
Aug 21, 2014 5:03:03 PM (11 years ago)
Author:
dungnv
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-bachkim-filespace/sourcecode/api.violet.vn/www/apps/platform/modules/space/actions/actions.class.php

    r59 r60  
    198198       
    199199        if (count($aryFileID) > 0) {
    200                 $c = new Criteria();
    201                 $c->add(TblspacefilePeer::FILE_ID, $aryFileID, Criteria::IN);
    202                 TblspacefilePeer::doDelete($c);
     200                foreach ($aryFileID as $id) {
     201                        $c = new Criteria();
     202                        $c->add(TblspacefilePeer::FILE_ID, $id);
     203                        $tblfile = TblspacefilePeer::doSelectOne($c);
     204                        if ($tblfile) $tblfile->delete();
     205                }
    203206        }       
    204207       
Note: See TracChangeset for help on using the changeset viewer.