Update xml_cdr.php (#4647)
removes potential for "Warning: sizeof(): Parameter must be an array or an object that implements Countable"
This commit is contained in:
parent
1a660fd45b
commit
655a8fea38
|
|
@ -703,7 +703,7 @@
|
||||||
echo "<br><br>";
|
echo "<br><br>";
|
||||||
|
|
||||||
// check or uncheck all checkboxes
|
// check or uncheck all checkboxes
|
||||||
if (sizeof($xml_ids) > 0) {
|
if (is_array($xml_ids) && sizeof($xml_ids) > 0) {
|
||||||
echo "<script>\n";
|
echo "<script>\n";
|
||||||
echo " function check(what) {\n";
|
echo " function check(what) {\n";
|
||||||
foreach ($xml_ids as $xml_id) {
|
foreach ($xml_ids as $xml_id) {
|
||||||
|
|
@ -719,4 +719,4 @@
|
||||||
//show the footer
|
//show the footer
|
||||||
require_once "resources/footer.php";
|
require_once "resources/footer.php";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue