Changeset 293


Ignore:
Timestamp:
02/22/06 00:03:52 (7 years ago)
Author:
anarcat
Message:

[project @ alternc: changeset 2004-05-28 13:53:20 by anonymous]
corrige un petit problème si une fonction alternc_quota_names ne
retourne rien (ou null par ex) (il apparaissait un quota de nom
"quota_")

Original author: anonymous
Date: 2004-05-28 13:53:20

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bureau/class/m_quota.php

    r222 r293  
    11<?php 
    22/* 
    3  $Id: m_quota.php,v 1.6 2004/05/19 14:23:06 benjamin Exp $ 
     3 $Id: m_quota.php,v 1.7 2004/05/28 13:53:20 anonymous Exp $ 
    44 ---------------------------------------------------------------------- 
    55 AlternC - Web Hosting System 
     
    8282      if (method_exists($GLOBALS[$classes[$i]],"alternc_quota_names")) { 
    8383        $res=$GLOBALS[$classes[$i]]->alternc_quota_names(); 
    84         if (is_array($res)) { 
    85           foreach($res as $k) { 
    86             $qlist[$k]=_("quota_".$k); 
     84        if($res != "") { 
     85          if (is_array($res)) { 
     86            foreach($res as $k) { 
     87              $qlist[$k]=_("quota_".$k); 
     88            } 
     89          } else { 
     90            $qlist[$res]=_("quota_".$res); 
    8791          } 
    88         } else { 
    89           $qlist[$res]=_("quota_".$res); 
    9092        } 
    9193      } 
Note: See TracChangeset for help on using the changeset viewer.