Changeset 2908


Ignore:
Timestamp:
03/27/11 19:39:17 (2 years ago)
Author:
benjamin
Message:

quota cache fixes quota display error when editing user quota in admin panel (fuf!)

File:
1 edited

Legend:

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

    r2863 r2908  
    127127    global $db,$err,$cuid,$get_quota_cache; 
    128128    $err->log("quota","getquota",$ressource); 
    129     if (! empty($get_quota_cache) ) { 
     129    if (! empty($get_quota_cache[$cuid]) ) { 
    130130      // This function is called many time each webpage, so I cache the result 
    131       $this->quotas = $get_quota_cache; 
     131      $this->quotas = $get_quota_cache[$cuid]; 
    132132    } else { 
    133133      $this->qlist(); // Generate the quota list. 
     
    153153        $this->quotas[$val]=array("t"=>$a[1],"u"=>$a[0]); 
    154154      }    
    155       $get_quota_cache = $this->quotas; 
     155      $get_quota_cache[$cuid] = $this->quotas; 
    156156    } 
    157157     
Note: See TracChangeset for help on using the changeset viewer.