- fix typo in mass email script

This commit is contained in:
David Anderson 2012-11-10 09:49:18 -08:00 committed by Oliver Bock
parent bee911811a
commit 33e33abd08
2 changed files with 6 additions and 1 deletions

View File

@ -6739,3 +6739,8 @@ Charlie 9 Nov 2012
mac_build/
UpperCase2.xcodeproj/
project.pbxproj
David 10 Nov 2012
- fix typo in mass email script
html/ops/
mass_email.php

View File

@ -81,7 +81,7 @@ if ($receiver > 0) {
$result = mysql_query($query);
while ($user = mysql_fetch_object($result)) {
// TODO: might want to also replace TOTAL_CREDIT, RAC, and similar.
$body_to_send = str_replace(USERNAME, $user->name, $body);
$body_to_send = str_replace("USERNAME", $user->name, $body);
$body_to_send .= "\n\nTo opt out of future emails from ".PROJECT.", please edit your project preferences at ".URL_BASE."prefs.php?subset=project\n";
$retval = send_email($user, $subject, $body_to_send);
if ($retval) {