From 254822bd101a18e3bab764684f2e3e808eb61e03 Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 18 Feb 2015 16:45:45 +0000 Subject: [PATCH] Fix for download issue in Inbound Daily Report git-svn-id: svn://192.168.202.10@2281 3d104415-ff17-0410-8863-d5cf3c621b8a --- .../www/vicidial/AST_inbound_daily_report.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/agc_2-X/trunk/www/vicidial/AST_inbound_daily_report.php b/agc_2-X/trunk/www/vicidial/AST_inbound_daily_report.php index e934b363..4b12f54f 100644 --- a/agc_2-X/trunk/www/vicidial/AST_inbound_daily_report.php +++ b/agc_2-X/trunk/www/vicidial/AST_inbound_daily_report.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # CHANGES # @@ -22,6 +22,7 @@ # 140328-0005 - Converted division calculations to use MathZDC function # 141113-2055 - Finalized adding QXZ translation to all admin files # 141230-0921 - Added code for on-the-fly language translations display +# 150218-1142 - Fix for download issue # $startMS = microtime(); @@ -401,7 +402,7 @@ while ($groups_to_print > $o) $selected=""; for ($i=0; $i<$groups_selected; $i++) { - if ($file_download < 1) {echo "\n";} + if ( ($file_download < 1) and ($DB) ) {echo "\n";} if ($groups[$o] == $group[$i]) {$selected="selected";} } $MAIN.="\n"; @@ -930,16 +931,17 @@ else $FtotABANDONS++; $FtotABANDONSsec+=$ls[$i]; } - else + else { $totANSWERSdate[$j]++; - if (($ls[$i]-$qs[$i]-15)>0) { ## Patch by Joe J - can cause negative time values if removed. + if (($ls[$i]-$qs[$i]-15)>0) + { ## Patch by Joe J - can cause negative time values if removed. $totANSWERSsecdate[$j]+=($ls[$i]-$qs[$i]-15); $FtotANSWERSsec+=($ls[$i]-$qs[$i]-15); - } + } $totANSWERSspeeddate[$j]+=$qs[$i]; $FtotANSWERS++; - print "\n"; + if ($DB) {print "\n";} $FtotANSWERSspeed+=$qs[$i]; } if (preg_match('/DROP/',$st[$i]))