Destination Select - Dynamic: Clear session array for Outbound Destinations.
This commit is contained in:
parent
229bc0ca4e
commit
c13c5182ac
|
|
@ -745,6 +745,12 @@
|
|||
$database->app_uuid = '5ec89622-b19c-3559-64f0-afde802ab139';
|
||||
$database->save($array);
|
||||
$dialplan_response = $database->message;
|
||||
|
||||
//clear the destinations session array
|
||||
if (isset($_SESSION['destinations']['array'])) {
|
||||
unset($_SESSION['destinations']['array']);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
|
|
|
|||
|
|
@ -1063,6 +1063,11 @@ if (!class_exists('destinations')) {
|
|||
}
|
||||
}
|
||||
|
||||
//clear the destinations session array
|
||||
if (isset($_SESSION['destinations']['array'])) {
|
||||
unset($_SESSION['destinations']['array']);
|
||||
}
|
||||
|
||||
//set message
|
||||
message::add($text['message-delete']);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue