From f4173f9d08547c6957118b63d8abf0a185d05796 Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 20 Nov 2013 20:45:01 +0000 Subject: [PATCH] Fixed a small display bug in the RealTime report when customer phone view is enabled git-svn-id: svn://192.168.202.10@2041 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/vicidial/AST_timeonVDADall.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/www/vicidial/AST_timeonVDADall.php b/www/vicidial/AST_timeonVDADall.php index f3b78701..272d229b 100644 --- a/www/vicidial/AST_timeonVDADall.php +++ b/www/vicidial/AST_timeonVDADall.php @@ -83,10 +83,11 @@ # 130610-0905 - Finalized changing of all ereg instances to preg # 130620-2303 - Added filtering of input to prevent SQL injection attacks and new user auth # 130901-2008 - Changed to mysqli PHP functions +# 131120-1543 - Fixed small display bug when customer phone view is enabled # -$version = '2.8-72'; -$build = '130901-2008'; +$version = '2.8-73'; +$build = '131120-1543'; header ("Content-type: text/html; charset=utf-8"); @@ -2065,7 +2066,7 @@ $stmt = "$stmtA $stmtB"; $rslt=mysql_to_mysqli($stmt, $link); if ($DB) {echo "$stmt\n";} $parked_to_print = mysqli_num_rows($rslt); - if ($parked_to_print > 0) +if ($parked_to_print > 0) { $i=0; $out_total=0; @@ -2580,7 +2581,7 @@ $talking_to_print = mysqli_num_rows($rslt); $custphone=''; while ($n < $calls_to_list) { - if ( (preg_match("/$VAClead_ids[$n]/", $Alead_id[$j])) and (strlen($VAClead_ids[$n]) == strlen($Alead_id[$j])) ) + if ( (preg_match("/$VAClead_ids[$n]/", $Alead_id[$j])) and (strlen($VAClead_ids[$n]) == strlen($Alead_id[$j])) and (strlen($VAClead_ids[$n] > 1)) ) {$custphone = $VACphones[$n];} $n++; }