Changeset 1347

Show
Ignore:
Timestamp:
09/10/08 20:55:19 (3 months ago)
Author:
scitech
Message:

Fixed #1530: Inconsistency between current_ftp_cnt and actual ftp count: -9 != 1

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r1346 r1347  
    55                * Updated French (thanks momo) 
    66                * Mail_add.php display incorrect messages 
     7                * Fixed #1530: Inconsistency between current_ftp_cnt and actual ftp count: -9 != 1 
    78 
    892008-09-09 Daniel Andreca 
  • trunk/gui/include/admin-functions.php

    r1327 r1347  
    949949 
    950950                        $rsub_current += $sub_current; 
    951                         $rsub_max += $sub_max
     951                        $rsub_max += ($sub_max>0)?$sub_max:0
    952952                } 
    953953 
     
    957957 
    958958                        $rals_current += $als_current; 
    959                         $rals_max += $als_max
     959                        $rals_max += ($als_max>0)?$als_max:0
    960960                } 
    961961 
     
    964964 
    965965                $rmail_current += $mail_current; 
    966                 $rmail_max += $mail_max
     966                $rmail_max += ($mail_max>0)?$mail_max:0
    967967 
    968968                if ($ftp_max == 0) 
     
    970970 
    971971                $rftp_current += $ftp_current; 
    972                 $rftp_max += $ftp_max
     972                $rftp_max += ($ftp_max>0)?$ftp_max:0
    973973 
    974974                if ($sql_db_max != -1) { 
     
    977977 
    978978                        $rsql_db_current += $sql_db_current; 
    979                         $rsql_db_max += $sql_db_max
     979                        $rsql_db_max += ($sql_db_max>0)?$sql_db_max:0
    980980                } 
    981981 
     
    985985 
    986986                        $rsql_user_current += $sql_user_current; 
    987                         $rsql_user_max += $sql_user_max
     987                        $rsql_user_max += ($sql_user_max>0)?$sql_user_max:0
    988988                } 
    989989