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:
parent
04ff72af18
commit
035e0ac934
|
|
@ -446,17 +446,18 @@
|
||||||
}
|
}
|
||||||
echo "<br><br>";
|
echo "<br><br>";
|
||||||
|
|
||||||
if (sizeof($dialplan_ids) > 0) {
|
if (is_array($dialplans)) {
|
||||||
echo "<script>\n";
|
if (sizeof($dialplan_ids) > 0) {
|
||||||
echo " function check(what) {\n";
|
echo "<script>\n";
|
||||||
echo " document.getElementById('chk_all').checked = (what == 'all') ? true : false;\n";
|
echo " function check(what) {\n";
|
||||||
foreach ($dialplan_ids as $checkbox_id) {
|
echo " document.getElementById('chk_all').checked = (what == 'all') ? true : false;\n";
|
||||||
echo "document.getElementById('$checkbox_id').checked = (what == 'all') ? true : false;\n";
|
foreach ($dialplan_ids as $checkbox_id) {
|
||||||
|
echo "document.getElementById('$checkbox_id').checked = (what == 'all') ? true : false;\n";
|
||||||
|
}
|
||||||
|
echo " }\n";
|
||||||
|
echo "</script>\n";
|
||||||
}
|
}
|
||||||
echo " }\n";
|
|
||||||
echo "</script>\n";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//include the footer
|
//include the footer
|
||||||
require_once "resources/footer.php";
|
require_once "resources/footer.php";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue