Changeset 1944
- Timestamp:
- 09/09/07 23:09:10 (1 year ago)
- Files:
-
- alternc/trunk/bureau/class/m_quota.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc/trunk/bureau/class/m_quota.php
r1655 r1944 121 121 * @Return the quota used and total for this ressource (or for all ressource if unspecified) 122 122 */ 123 function getquota($ressource="" ) {123 function getquota($ressource="",$force= false) { 124 124 global $db,$err,$cuid; 125 125 $err->log("quota","getquota",$ressource); 126 126 $this->qlist(); // Generate the quota list. 127 if ($force == false && $this->quotas) { 128 if ($ressource) { 129 return $this->quotas[$ressource]; 130 } else { 131 return $this->quotas; 132 } 133 } 127 134 $db->query("select * from quotas where uid='$cuid';"); 128 135 if ($db->num_rows()==0) {
