Fix the dial_string remove the extra comma.
This commit is contained in:
@@ -343,8 +343,12 @@ include "root.php";
|
|||||||
$dial_string .= ",accountcode=".$this->accountcode;
|
$dial_string .= ",accountcode=".$this->accountcode;
|
||||||
}
|
}
|
||||||
$dial_string .= "}";
|
$dial_string .= "}";
|
||||||
|
$x = 0;
|
||||||
foreach ($result as &$row) {
|
foreach ($result as &$row) {
|
||||||
$dial_string .= ",[";
|
if ($x > 0) {
|
||||||
|
$dial_string .= ",";
|
||||||
|
}
|
||||||
|
$dial_string .= "[";
|
||||||
if (extension_exists($row["follow_me_destination"])) {
|
if (extension_exists($row["follow_me_destination"])) {
|
||||||
//set the dial string
|
//set the dial string
|
||||||
if (strlen($_SESSION['domain']['dial_string']['text']) == 0) {
|
if (strlen($_SESSION['domain']['dial_string']['text']) == 0) {
|
||||||
@@ -393,6 +397,7 @@ include "root.php";
|
|||||||
$dial_string .= $row["follow_me_destination"];
|
$dial_string .= $row["follow_me_destination"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$x++;
|
||||||
}
|
}
|
||||||
$this->dial_string = $dial_string;
|
$this->dial_string = $dial_string;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user