Changeset 2883 for trunk/filemanager


Ignore:
Timestamp:
05/31/10 11:50:36 (14 years ago)
Author:
amuller
Message:

Ticket #1094 - corrige problema de pasta vazia

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/filemanager/inc/class.uifilemanager.inc.php

    r2857 r2883  
    488488                        $owner_id = $this->bo->vfs->ownerOf($this->bo->fakebase,$path[2]); 
    489489                        $user_id = $GLOBALS['phpgw_info']['user']['account_id']; 
     490 
    490491                        if ($owner_id == $user_id) 
    491492                        { 
     
    504505                        // change dir to this->path 
    505506                        $this->bo->vfs->cd(array('string' => $this->path, 'relatives' => array(RELATIVE_NONE), 'relative' => False)); 
     507 
    506508                        $return['permissions'] = $this->get_permissions(); 
    507509                        $return['quota']['usedSpace'] = $this->bo->vfs->get_size(array( 
    508510                                        'string'        => $this->path, 
    509511                                        'relatives'     => array(RELATIVE_NONE) 
    510                         )); 
     512                                )); 
     513 
    511514                        $return['files_count'] = $this->bo->vfs->count_files(array( 
    512515                                        'string'        => $this->path, 
     
    526529                                        continue; 
    527530                                } 
     531                                if ($files['size'] == "" && $files['name'] == "") 
     532                                        continue; 
    528533                                /* small keys to safe bandwidth */ 
    529534                                $tuple['name'] = $files['name']; 
Note: See TracChangeset for help on using the changeset viewer.