aboutsummaryrefslogtreecommitdiff
path: root/views/default/output/confirmlink.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/output/confirmlink.php')
-rw-r--r--views/default/output/confirmlink.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/default/output/confirmlink.php b/views/default/output/confirmlink.php
index e0a6f65d7..e95dd5f31 100644
--- a/views/default/output/confirmlink.php
+++ b/views/default/output/confirmlink.php
@@ -21,7 +21,7 @@ if (!$confirm) {
$link = $vars['href'];
-if ($vars['is_action']) {
+if (isset($vars['is_action']) && $vars['is_action']) {
$ts = time();
$token = generate_action_token($ts);
@@ -30,7 +30,7 @@ if ($vars['is_action']) {
$link = "$link{$sep}__elgg_token=$token&__elgg_ts=$ts";
}
-if ($vars['class']) {
+if (isset($vars['class']) && $vars['class']) {
$class = 'class="' . $vars['class'] . '"';
} else {
$class = '';