Changeset 1945 for alternc/trunk/bureau/class/m_quota.php
- Timestamp:
- 09/09/07 23:55:18 (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
r1944 r1945 121 121 * @Return the quota used and total for this ressource (or for all ressource if unspecified) 122 122 */ 123 function getquota($ressource="" ,$force= false) {123 function getquota($ressource="") { 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 }134 127 $db->query("select * from quotas where uid='$cuid';"); 135 128 if ($db->num_rows()==0) {
