Ignore:
Timestamp:
Sep 11, 2014 2:05:08 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

    r75 r76  
    266266
    267267    if (is_array($aryTreeObj)) {
    268         foreach ($aryTreeObj as $key => $treeObj){
    269                 $this->CopySpaceDir($treeObj, $destination, $userId, $aryNewTree);
     268        foreach ($aryTreeObj as $key => $treeObj){;
     269                if ($treeObj.type == 'directory') {
     270                        $this->CopySpaceDir($treeObj, $destination, $userId, $aryNewTree);
     271                }
     272                else {
     273                        $aryNewTree['FILES'] = $this->CopySpaceFile($treeObj.id, $destination, $userid);
     274                }
    270275        }
    271276    }
    272277   
    273278    $this->aryNewTree = $aryNewTree;
    274    
    275279  }
    276280
Note: See TracChangeset for help on using the changeset viewer.