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 1a660fd45b
commit 655a8fea38
1 changed files with 2 additions and 2 deletions

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";
?>
?>