X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-rallyes.php;h=e5c70a987fa5759af54f0bb043313e62d4845e02;hp=3ff0675f3ea6925b247a664a1d534cccf885d264;hb=039203d5428c9c6a3bed61fb3a9a16958c6fd44c;hpb=e2148142f8b1a8f40fd6e7ca32185569c5a9083e diff --git a/inc/modules/member/what-rallyes.php b/inc/modules/member/what-rallyes.php index 3ff0675f3e..e5c70a987f 100644 --- a/inc/modules/member/what-rallyes.php +++ b/inc/modules/member/what-rallyes.php @@ -52,8 +52,9 @@ if ((!isExtensionActive('rallye')) && (!isAdmin())) { } // END - if // Check for possible running rallyes -$ADMIN = " AND d.is_active='Y'"; -if (isAdmin()) $ADMIN = ''; +$ADD = " AND d.is_active='Y'"; +if (isAdmin()) $ADD = ''; + $result = SQL_QUERY("SELECT d.id, d.admin_id, a.login, d.title, d.descr, d.template, d.start_time, d.end_time, d.min_users, d.min_prices FROM @@ -63,7 +64,7 @@ INNER JOIN ON d.admin_id=a.id WHERE - d.notified='Y'".$ADMIN." + d.notified='Y'".$ADD." ORDER BY d.end_time ASC LIMIT 1", __FILE__, __LINE__); @@ -82,11 +83,11 @@ if (SQL_NUMROWS($result) == 1) { $content['extras'] = getMessage('RALLYE_EXPIRE_ONE_DAY'); } else { // Link to referal links page - $content['extras'] = "{--RALLYE_GET_REFLINK--}"; + $content['extras'] = '{--RALLYE_GET_REFLINK--}'; } // Set admin line (currently set to impressum, later to contact form) - // @TODO Reactivate this: $content['admin'] = "".$content['login'].""; + // @TODO Reactivate this: $content['admin'] = '' . $content['login'] . ''; // Handle description... if ((empty($content['descr'])) && (!empty($content['template']))) { @@ -104,7 +105,7 @@ if (SQL_NUMROWS($result) == 1) { if ($expired === true) { $content['prices'] = addReferalRallyeWinners($content['id']); - $content['top_users'] = "
".$content['extras']."
"; + $content['top_users'] = '
' . $content['extras'] . '
'; $content['can_win_this'] = getMessage('RALLYE_OUR_WINNERS_ARE'); } else { $content['prices'] = addReferalRallyePrices($content['id'], 'html');