Update dialplans.php (#4606)

removing potential for Warning: sizeof(): Parameter must be an array or an object that implements Countable
This commit is contained in:
chansizzle 2019-09-13 14:30:05 -06:00 committed by FusionPBX
parent 04ff72af18
commit 035e0ac934
1 changed files with 10 additions and 9 deletions

View File

@ -446,6 +446,7 @@
} }
echo "<br><br>"; echo "<br><br>";
if (is_array($dialplans)) {
if (sizeof($dialplan_ids) > 0) { if (sizeof($dialplan_ids) > 0) {
echo "<script>\n"; echo "<script>\n";
echo " function check(what) {\n"; echo " function check(what) {\n";
@ -456,7 +457,7 @@
echo " }\n"; echo " }\n";
echo "</script>\n"; echo "</script>\n";
} }
}
//include the footer //include the footer
require_once "resources/footer.php"; require_once "resources/footer.php";