Changeset 62 for pro-bachkim-filespace


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

    r61 r62  
    208208       
    209209        if (count($aryDirID) > 0) {
    210                 $c = new Criteria();
    211                 $c->add(TblspacecategoryPeer::CAT_USER, $userId);
    212                 $c->add(TblspacecategoryPeer::CAT_ID, $aryDirID, Criteria::IN);
    213                 TblspacecategoryPeer::doDelete($c);
     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                }
    214216        }
    215217       
Note: See TracChangeset for help on using the changeset viewer.