Get rid of the is included which prevents the redirect.

This commit is contained in:
Mark Crane
2014-12-27 18:20:30 +00:00
parent 86582905c0
commit c5d18e41be

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2012
Portions created by the Initial Developer are Copyright (C) 2008-2014
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -62,10 +62,9 @@
$_SESSION["template_content"] = '';
//redirect
if (!$included) {
//show a message to the user
$_SESSION["message"] = $text['message-restore'];
header("Location: ".PROJECT_PATH."/core/menu/menu_edit.php?id=".$menu_uuid);
return;
}
//show a message to the user
$_SESSION["message"] = $text['message-restore'];
header("Location: ".PROJECT_PATH."/core/menu/menu_edit.php?id=".$menu_uuid);
return;
?>