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>";
|
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user