X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmails%2Fbeg_mails.php;h=44991df0be5c6910a26d099bca5bc214565f8fdd;hb=7d153f020b4a27f2349eef9161ee4224980baa35;hp=7bbd91f4f422f9652abd63aad1af6349456f77f4;hpb=60494e212a67fe360bfbb481eb4928480a6f379b;p=mailer.git diff --git a/inc/mails/beg_mails.php b/inc/mails/beg_mails.php index 7bbd91f4f4..44991df0be 100644 --- a/inc/mails/beg_mails.php +++ b/inc/mails/beg_mails.php @@ -55,7 +55,7 @@ $SQL = "SELECT userid, email FROM "._MYSQL_PREFIX."_user_data WHERE (beg_ral_not switch ($_CONFIG['beg_rallye']) { case 'Y': // Begging rallye is activated - if ($_CONFIG['beg_ral_en_notify'] == 'Y') + if ($_CONFIG['beg_ral_en_notify'] == "Y") { // Okay, let's check for member accounts $SQL .= "= 0 OR (beg_ral_notify > 0 AND beg_ral_en_notify < beg_ral_di_notify)"; @@ -69,7 +69,7 @@ case 'Y': // Begging rallye is activated break; case 'N': // Begging rallye is deactivated - if ($_CONFIG['beg_ral_di_notify'] == 'Y') + if ($_CONFIG['beg_ral_di_notify'] == "Y") { // Okay, let's check for member accounts $SQL .= " > 0 AND beg_ral_di_notify < beg_ral_en_notify"; @@ -123,7 +123,7 @@ if (!empty($SQL)) { // Update account $result_update = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data -SET beg_ral_notify='%s', beg_ral_%s_notify='%s' WHERE userid=%d LIMIT 1", +SET beg_ral_notify='%s', beg_ral_%s_notify='%s' WHERE userid=%s LIMIT 1", array(time(), $MODE, time(), $uid), __FILE__, __LINE__); // Load email template and send it to the user!