Wrap is_array arround foreach

This commit is contained in:
FusionPBX
2022-10-13 08:43:32 -06:00
committed by GitHub
parent 2a2069fe9e
commit 598eb4ab31

View File

@@ -1455,10 +1455,12 @@
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
$x=0;
foreach($destination_actions as $row) {
echo $destination->select('dialplan', "destination_actions[$x]", $row['destination_app'].':'.$row['destination_data']);
echo "<br />\n";
$x++;
if (is_array($destination_actions)) {
foreach($destination_actions as $row) {
echo $destination->select('dialplan', "destination_actions[$x]", $row['destination_app'].':'.$row['destination_data']);
echo "<br />\n";
$x++;
}
}
echo $destination->select('dialplan', "destination_actions[$x]", '');
echo " <br />\n";