summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 97e0d6409..fcba35b7d 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -2345,7 +2345,7 @@ function node_delete_confirm($node) {
return confirm_form($form,
t('Are you sure you want to delete %title?', array('%title' => $node->title)),
- $_GET['destination'] ? $_GET['destination'] : 'node/'. $node->nid,
+ isset($_GET['destination']) ? $_GET['destination'] : 'node/'. $node->nid,
t('This action cannot be undone.'),
t('Delete'), t('Cancel'));
}
@@ -2479,8 +2479,9 @@ function node_page_view($node, $cid = NULL) {
*/
function node_page_edit($node) {
if (isset($_POST['op']) && ($_POST['op'] == t('Delete'))) {
+ $destination = '';
// Note: we redirect from node/nid/edit to node/nid/delete to make the tabs disappear.
- if ($_REQUEST['destination']) {
+ if (isset($_REQUEST['destination'])) {
$destination = drupal_get_destination();
unset($_REQUEST['destination']);
}