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:
chansizzle
2019-09-24 13:38:19 -06:00
committed by FusionPBX
parent e36acf1dcd
commit d8a98c6709

View File

@@ -703,7 +703,7 @@
echo "<br><br>";
// check or uncheck all checkboxes
if (sizeof($xml_ids) > 0) {
if (is_array($xml_ids) && sizeof($xml_ids) > 0) {
echo "<script>\n";
echo " function check(what) {\n";
foreach ($xml_ids as $xml_id) {
@@ -719,4 +719,4 @@
//show the footer
require_once "resources/footer.php";
?>
?>