Destination Select - Dynamic: Clear session array on add/toggle/delete of a destination type record.
This commit is contained in:
@@ -174,6 +174,11 @@
|
||||
$cache = new cache;
|
||||
$cache->delete("languages:".$phrase_language.".".$phrase_uuid);
|
||||
|
||||
//clear the destinations session array
|
||||
if (isset($_SESSION['destinations']['array'])) {
|
||||
unset($_SESSION['destinations']['array']);
|
||||
}
|
||||
|
||||
//send a redirect
|
||||
message::add($text['message-add']);
|
||||
header("Location: phrase_edit.php?id=".$phrase_uuid);
|
||||
@@ -240,6 +245,11 @@
|
||||
$cache = new cache;
|
||||
$cache->delete("languages:".$phrase_language.".".$phrase_uuid);
|
||||
|
||||
//clear the destinations session array
|
||||
if (isset($_SESSION['destinations']['array'])) {
|
||||
unset($_SESSION['destinations']['array']);
|
||||
}
|
||||
|
||||
//send a redirect
|
||||
message::add($text['message-update']);
|
||||
header("Location: phrase_edit.php?id=".$phrase_uuid);
|
||||
|
||||
Reference in New Issue
Block a user