diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-12-21 13:16:19 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-12-21 13:16:19 +0000 |
commit | 507b1b1e17882f5aeb7fbe35dc712eec455ae045 (patch) | |
tree | a5aca4d4488e376239772172f09832bac432e2a3 /views/default/output/confirmlink.php | |
parent | 67f344bddce0036adde116370e170fd25b5c5d4c (diff) | |
download | elgg-507b1b1e17882f5aeb7fbe35dc712eec455ae045.tar.gz elgg-507b1b1e17882f5aeb7fbe35dc712eec455ae045.tar.bz2 |
a little cleanup of documentation and variable handling in input and output views
git-svn-id: http://code.elgg.org/elgg/trunk@3780 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/output/confirmlink.php')
-rw-r--r-- | views/default/output/confirmlink.php | 4 |
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 = ''; |