]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-rallyes.php
Fix for trying to get a message from a message (no id)
[mailer.git] / inc / modules / guest / what-rallyes.php
index c2788fbc05386b6609277b1860f280ef2d0a5271..31dc59992a35be5bd4d89dd4938599a493a6255d 100644 (file)
@@ -50,7 +50,7 @@ if ((!isExtensionActive('rallye')) && (!isAdmin())) {
 } // END - if
 
 // Open div tag
-outputHtml("<div align=\"center\">");
+outputHtml('<div align="center">');
 
 // Check for possible running rallyes
 $ADMIN = " AND d.is_active='Y'";
@@ -102,14 +102,14 @@ if (SQL_NUMROWS($result) == 1) {
        }
 
        // Set start and end time
-       $content['start'] = generateDateTime($start, '1');
-       $content['end']   = generateDateTime($end  , '1');
+       $content['start'] = generateDateTime($start, 1);
+       $content['end']   = generateDateTime($end  , 1);
 
        // Determine min_users
        $content['min_users'] = determineReferalRallyeMinimumUsers($min_users);
 
        // Determine min prices (now in function)
-       $content['min_prices'] = determineReferalRallyeMinimumPrices();
+       $content['min_prices'] = determineReferalRallyeMinimumPrices($min_prices);
 
        if ($expired === true) {
                $content['prices']       = addReferalRallyeWinners($id);
@@ -117,7 +117,7 @@ if (SQL_NUMROWS($result) == 1) {
                $content['can_win_this'] = getMessage('RALLYE_OUR_WINNERS_ARE');
        } else {
                $content['prices']       = addReferalRallyePrices($id, 'html');
-               $content['top_users']    = addReferalRallyeTopUsers($id, getUserId());
+               $content['top_users']    = addReferalRallyeTopUsers($id, getMemberId());
                $content['can_win_this'] = getMessage('RALLYE_YOU_CAN_WIN');
        }