mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
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:
@@ -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";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user