Changeset 1741 for trunk/phpgwapi


Ignore:
Timestamp:
12/03/09 10:31:28 (14 years ago)
Author:
amuller
Message:

Ticket #597 - Melhorias no módulos gerenciador de arquivos do expresso livre

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.vfs_sql.inc.php

    r1726 r1741  
    11391139                                $data = array (); 
    11401140                        } 
    1141                         $path = explode('/',$data['to']); 
    1142                         $quota = $this->get_quota(array('string' => '/'.$path[1].'/'.$path[2])); 
    1143                         $size = $this->get_size(array('string' => '/'.$path[1].'/'.$path[2], 'relatives' => $data['relatives'][1])); 
    1144                         if ($quota > 0 && $size >= $quota * 1024 * 1024) 
     1141                        if ($data['relatives'][1] == RELATIVE_NONE) 
     1142                                $path = explode(SEP,$data['to']); 
     1143                        else 
     1144                                $path = explode(SEP,$this->my_home); 
     1145                        $quota = $this->get_quota(array('string' => SEP.$path[1].SEP.$path[2])); 
     1146                        $size = $this->get_size(array('string' => SEP.$path[1].SEP.$path[2], 'relatives' => $data['relatives'][1])); 
     1147 
     1148                        if ($quota > 0 && ($quota * 1024 * 1024) < $size) 
    11451149                                return false; 
    11461150 
Note: See TracChangeset for help on using the changeset viewer.