Changeset 1741 for trunk/phpgwapi
- Timestamp:
- 12/03/09 10:31:28 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.vfs_sql.inc.php
r1726 r1741 1139 1139 $data = array (); 1140 1140 } 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) 1145 1149 return false; 1146 1150
Note: See TracChangeset
for help on using the changeset viewer.