diff --git a/admin/remotecontrol/lsrc.helper.php b/admin/remotecontrol/lsrc.helper.php
index 9c593127507..2fb2f2cd783 100644
--- a/admin/remotecontrol/lsrc.helper.php
+++ b/admin/remotecontrol/lsrc.helper.php
@@ -103,7 +103,7 @@ function changeTable($table, $key, $value, $where, $mode='0')//XXX
}
-/*
+ /*
* Function to send Emails to participants of a specific survey
*/
function emailSender($surveyid, $type, $maxLsrcEmails='') //XXX
@@ -115,7 +115,7 @@ function emailSender($surveyid, $type, $maxLsrcEmails='') //XXX
include("../../classes/core/html_entity_decode_php4.php");
$lsrcHelper= new LsrcHelper();
- // wenn maxmails ber den lsrc gegeben wird das nurtzen, ansonsten die default werte aus der config.php
+ // wenn maxmails ber den lsrc gegeben wird das nutzen, ansonsten die default werte aus der config.php
if($maxLsrcEmails!='')
$maxemails = $maxLsrcEmails;
@@ -388,8 +388,7 @@ function emailSender($surveyid, $type, $maxLsrcEmails='') //XXX
$_POST['message_'.$languageRow['surveyls_language']] = $languageRow['surveyls_email_remind'];
$_POST['subject_'.$languageRow['surveyls_language']] = $languageRow['surveyls_email_remind_subj'];
}
-
-
+
//$tokenoutput .= $clang->gT("Sending Reminders")."
\n";
$surveylangs = GetAdditionalLanguagesFromSurveyID($surveyid);
@@ -403,18 +402,8 @@ function emailSender($surveyid, $type, $maxLsrcEmails='') //XXX
}
-// if (isset($starttokenid)) {$tokenoutput .= " (".$clang->gT("From Token ID").": {$starttokenid})";}
-// if (isset($tokenid)) {$tokenoutput .= " (".$clang->gT("Sending to Token ID").": {$tokenid})";}
-
-// if (isset($_POST['bypassbademails']) && $_POST['bypassbademails'] == 'Y')
-// {
- $SQLemailstatuscondition = " AND emailstatus = 'OK'";
-// }
-// else
-// {
-// $SQLemailstatuscondition = "";
-// }
-
+ $SQLemailstatuscondition = " AND emailstatus = 'OK'";
+
if (isset($_POST['maxremindercount']) &&
$_POST['maxremindercount'] != '' &&
intval($_POST['maxremindercount']) != 0)
@@ -466,11 +455,6 @@ function emailSender($surveyid, $type, $maxLsrcEmails='') //XXX
$emresult = db_select_limit_assoc($emquery, $maxemails);
//$emresult = db_execute_assoc($emquery);
$emcount = $emresult->RecordCount();
-// $tokenoutput .= "
\n"; - - if ($emcount > 0) { @@ -561,43 +545,13 @@ function emailSender($surveyid, $type, $maxLsrcEmails='') //XXX if ($ctcount > $emcount) { $lefttosend = $ctcount-$maxemails; -// $tokenoutput .= "\t\t | \n" -// ."\t