mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Use loop only if destination_actions is an array
This commit is contained in:
@@ -282,9 +282,11 @@
|
||||
|
||||
//prepare the destination actions
|
||||
$destination_actions = json_decode($row['destination_actions'], true);
|
||||
foreach($destination_actions as $action) {
|
||||
$destination_app = $action['destination_app'];
|
||||
$destination_data = $action['destination_data'];
|
||||
if (is_array($destination_actions)) {
|
||||
foreach($destination_actions as $action) {
|
||||
$destination_app = $action['destination_app'];
|
||||
$destination_data = $action['destination_data'];
|
||||
}
|
||||
}
|
||||
|
||||
//create the row link
|
||||
|
||||
Reference in New Issue
Block a user