tbrehm
2012-01-03 9c7f615822006ab96870e7967a95d3e6cec62d64
Fixed: FS#1904 - Traffic quota exceeded message in web does not get away after traffic set to unlimited
2 files modified
6 ■■■■ changed files
server/cron_daily.php 2 ●●● patch | view | raw | blame | history
server/lib/classes/db_mysql.inc.php 4 ●●●● patch | view | raw | blame | history
server/cron_daily.php
@@ -406,7 +406,7 @@
    $current_month = date('Y-m');
    //* Check website traffic quota
    $sql = "SELECT sys_groupid,domain_id,domain,traffic_quota,traffic_quota_lock FROM web_domain WHERE traffic_quota > 0 and type = 'vhost'";
    $sql = "SELECT sys_groupid,domain_id,domain,traffic_quota,traffic_quota_lock FROM web_domain WHERE (traffic_quota > 0 or traffic_quota_lock = 'y') and type = 'vhost'";
    $records = $app->db->queryAllRecords($sql);
    if(is_array($records)) {
        foreach($records as $rec) {
server/lib/classes/db_mysql.inc.php
@@ -298,7 +298,11 @@
            //print_r($diff_num);
            //print_r($diffrec_full);
            $diffstr = $app->db->quote(serialize($diffrec_full));
            if(isset($_SESSION)) {
            $username = $app->db->quote($_SESSION['s']['user']['username']);
            } else {
                $username = 'admin';
            }
            $dbidx = $primary_field.':'.$primary_id;
                        
            if($action == 'INSERT') $action = 'i';