Changeset 1944

Show
Ignore:
Timestamp:
09/09/07 23:09:10 (1 year ago)
Author:
azerttyu
Message:

cf commit [1808]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/bureau/class/m_quota.php

    r1655 r1944  
    121121   * @Return the quota used and total for this ressource (or for all ressource if unspecified) 
    122122   */ 
    123   function getquota($ressource="") { 
     123  function getquota($ressource="",$force= false) { 
    124124    global $db,$err,$cuid; 
    125125    $err->log("quota","getquota",$ressource); 
    126126    $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        }      
    127134    $db->query("select * from quotas where uid='$cuid';"); 
    128135    if ($db->num_rows()==0) {