From 0207aa03042398fd74e6b444f7414d900b710ee1 Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 22 Aug 2014 13:02:14 +0000 Subject: [PATCH] Fixed issue with phone alias login in vicidial.php git-svn-id: svn://192.168.202.10@2166 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/agc/vicidial.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index 0a8909d8..91a35427 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -441,10 +441,11 @@ # 140703-1658 - Several logging fixes, mostly related to manual dial calls # 140706-0932 - Added callback_time_24hour for callback setting screen # 140811-1219 - Changed to use QXZ function for echoing text +# 140822-0900 - Fixed issue with phone alias login # -$version = '2.10-412c'; -$build = '140811-1219'; +$version = '2.10-413c'; +$build = '140822-0900'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=80; $one_mysql_log=0; @@ -2152,7 +2153,7 @@ else { if ($pa > 0) {$phoneSQL .= " or ";} - $desc = ($phones_auto_ct - $pa); # traverse in reverse order + $desc = ($phones_auto_ct - $pa - 1); # traverse in reverse order $phoneSQL .= "(login='$phones_auto[$desc]' and pass='$phone_pass')"; $pa++; }