Skip to content

Commit

Permalink
Fixed #3914: Email button appearing in token list even though there i…
Browse files Browse the repository at this point in the history
…s no email address

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8031 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Dec 1, 2009
1 parent ef7e69f commit 7ef801e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions admin/tokens.php
Expand Up @@ -996,14 +996,13 @@
}
}

elseif ($brow['completed'] == "N" && $brow['token'] && $brow['sent'] == "N")

elseif ($brow['completed'] == "N" && $brow['token'] && $brow['sent'] == "N" && trim($brow['email'])!='')
{
$tokenoutput .= "<input style='height: 16; width: 16px; font-size: 8; font-family: verdana' type='image' src='$imagefiles/token_invite.png' title='"
.$clang->gT("Send invitation email to this entry")."' onclick=\"window.open('{$_SERVER['PHP_SELF']}?action=tokens&amp;sid=$surveyid&amp;subaction=email&amp;tid=".$brow['tid']."', '_top')\" />";
}

elseif ($brow['completed'] == "N" && $brow['token'] && $brow['sent'] != "N") // reminder button
elseif ($brow['completed'] == "N" && $brow['token'] && $brow['sent'] != "N" && trim($brow['email'])!='') // reminder button
{
$tokenoutput .= "<input style='height: 16; width: 16px; font-size: 8; font-family: verdana' type='image' src='$imagefiles/token_remind.png' title='"
.$clang->gT("Send reminder email to this entry")."' onclick=\"window.open('{$_SERVER['PHP_SELF']}?sid=$surveyid&amp;action=tokens&amp;subaction=remind&amp;tid=".$brow['tid']."', '_top')\" />";
Expand Down

0 comments on commit 7ef801e

Please sign in to comment.