X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Freset%2Freset_holiday.php;h=f31c6f52a1266583ccbf65a0485a723d8c28cdad;hb=3b15416a92af60582c1b622e2bff5ae476c647c1;hp=e678d588086df6a3359c6d8149943f939309d256;hpb=de41e408f6fcbab2ff82fa14e83e825ba57ef273;p=mailer.git diff --git a/inc/reset/reset_holiday.php b/inc/reset/reset_holiday.php index e678d58808..f31c6f52a1 100644 --- a/inc/reset/reset_holiday.php +++ b/inc/reset/reset_holiday.php @@ -1,7 +1,7 @@ "); - // Check for holidays we need to enable and send email to user $result_main = SQL_QUERY("SELECT `userid`, `holiday_activated` @@ -62,7 +62,7 @@ ORDER BY __FILE__, __LINE__); // Entries found? -if (SQL_NUMROWS($result_main) > 0) { +if (!SQL_HASZERONUMS($result_main)) { // Init SQLs initSqls(); @@ -94,7 +94,7 @@ LIMIT 1", // Send email to user $message = loadEmailTemplate('member_holiday_activated', $content, $content['userid']); - sendEmail($content['userid'], getMessage('HOLIDAY_MEMBER_ACTIVATED_SUBJ'), $message); + sendEmail($content['userid'], '{--MEMBER_HOLIDAY_ACTIVATED_SUBJECT--}', $message); // Update account addSql(SQL_QUERY_ESC("UPDATE