Changeset 59


Ignore:
Timestamp:
Aug 21, 2014 4:50:23 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

    r58 r59  
    199199        if (count($aryFileID) > 0) {
    200200                $c = new Criteria();
    201                 foreach ($aryFileID as $id) {
    202                         $c->add(TblspacefilePeer::FILE_ID, $id);
    203                 }
     201                $c->add(TblspacefilePeer::FILE_ID, $aryFileID, Criteria::IN);
    204202                TblspacefilePeer::doDelete($c);
    205203        }       
     
    207205        if (count($aryDirID) > 0) {
    208206                $c = new Criteria();
    209                 foreach ($aryDirID as $id) {
    210                         $c->add(TblspacecategoryPeer::CAT_ID, $id);
    211                 }
     207                $c->add(TblspacecategoryPeer::CAT_ID, $aryDirID, Criteria::IN);
    212208                TblspacecategoryPeer::doDelete($c);
    213209        }
Note: See TracChangeset for help on using the changeset viewer.