Ignore:
Timestamp:
Aug 21, 2014 5:45:12 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

    r64 r65  
    208208       
    209209        if (count($aryDirID) > 0) {
    210                 foreach ($aryDirID as $id) {
    211                         $c = new Criteria();
    212                         $c->add(TblspacecategoryPeer::CAT_USER, $userId);
    213                         $c->add(TblspacecategoryPeer::CAT_ID, $id);
    214                         TblspacecategoryPeer::doDelete($c);
    215                 }
     210                $c = new Criteria();
     211                $c->add(TblspacecategoryPeer::CAT_USER, $userId);
     212                $c->add(TblspacecategoryPeer::CAT_ID, $aryDirID, Criteria::IN);
     213                TblspacecategoryPeer::doDelete($c);
    216214        }
    217215       
Note: See TracChangeset for help on using the changeset viewer.