Update dialplan.php
This commit is contained in:
parent
0aa002dc1d
commit
698b18a63a
|
|
@ -603,7 +603,7 @@ include "root.php";
|
||||||
|
|
||||||
//loop through the results to get the xml from the dialplan_xml field or from dialplan details table
|
//loop through the results to get the xml from the dialplan_xml field or from dialplan details table
|
||||||
$x = 0;
|
$x = 0;
|
||||||
if (is_array($result) && @sizeof($result) != 0) {
|
if (is_array($results) && @sizeof($results) != 0) {
|
||||||
foreach ($results as $row) {
|
foreach ($results as $row) {
|
||||||
//clear flag pass
|
//clear flag pass
|
||||||
$pass = false;
|
$pass = false;
|
||||||
|
|
@ -833,7 +833,7 @@ include "root.php";
|
||||||
$pass = true;
|
$pass = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unset($results, $row);
|
unset($row);
|
||||||
|
|
||||||
// prevent partial dialplan (pass=nil may be error in sql or empty resultset)
|
// prevent partial dialplan (pass=nil may be error in sql or empty resultset)
|
||||||
if ($pass == false) {
|
if ($pass == false) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue