Ignore:
Timestamp:
Sep 11, 2014 3:42:59 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

    r82 r84  
    264264        $aryNewTree = array();
    265265    $aryTreeObj = json_decode($data);
    266 
    267     if (is_array($aryTreeObj)) {
     266 
     267   
     268    /* if (is_array($aryTreeObj)) {
    268269        foreach ($aryTreeObj as $key => $treeObj){;
    269270                if ($treeObj->type == 'directory') {
    270271                        //$this->CopySpaceDir($treeObj, $destination, $userId, $aryNewTree);
    271                         $aryNewTree["DIRECTORIES"] = $treeObj->id;
     272                        $aryNewTree["DIRECTORIES"][] = $treeObj->id;
    272273                }
    273274                else {
    274275                        //$aryNewTree['FILES'] = $this->CopySpaceFile($treeObj->id, $destination, $userid);
    275                         $aryNewTree['FILES'] = $treeObj->id;
     276                        $aryNewTree['FILES'][] = $treeObj->id;
    276277                }
    277278        }
    278     }
    279    
    280     $this->aryNewTree = $aryNewTree;
     279    } */
     280   
     281    $this->aryNewTree = $destination;
    281282  }
    282283
Note: See TracChangeset for help on using the changeset viewer.