Fixed issue with phone alias login in vicidial.php

git-svn-id: svn://192.168.202.10@2166 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2014-08-22 13:02:14 +00:00
parent a46c1c6e74
commit 8ef5579efc
+4 -3
View File
@@ -441,10 +441,11 @@
# 140703-1658 - Several logging fixes, mostly related to manual dial calls # 140703-1658 - Several logging fixes, mostly related to manual dial calls
# 140706-0932 - Added callback_time_24hour for callback setting screen # 140706-0932 - Added callback_time_24hour for callback setting screen
# 140811-1219 - Changed to use QXZ function for echoing text # 140811-1219 - Changed to use QXZ function for echoing text
# 140822-0900 - Fixed issue with phone alias login
# #
$version = '2.10-412c'; $version = '2.10-413c';
$build = '140811-1219'; $build = '140822-0900';
$mel=1; # Mysql Error Log enabled = 1 $mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=80; $mysql_log_count=80;
$one_mysql_log=0; $one_mysql_log=0;
@@ -2152,7 +2153,7 @@ else
{ {
if ($pa > 0) if ($pa > 0)
{$phoneSQL .= " or ";} {$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')"; $phoneSQL .= "(login='$phones_auto[$desc]' and pass='$phone_pass')";
$pa++; $pa++;
} }