Fix for template
[mailer.git] / doubler.php
index 9b6745a31d70cf50ebfdfa030a2bdb9889e126cf..791dc3e025881aefc00a0cef03c5d71397b34c3e 100644 (file)
@@ -84,7 +84,8 @@ $userid = 0;
 
 // If no account was found set default refid and status to CONFIRMED
 if (empty($GLOBALS['refid'])) {
-       $GLOBALS['refid'] = getConfig('def_refid');
+       // Determine referal id again
+       $GLOBALS['refid'] = determineReferalId();
        $status = 'CONFIRMED';
 } // END - if
 
@@ -243,7 +244,7 @@ if (isExtensionActive('nickname')) {
 $content['payout_time'] = getMessage('DOUBLER_PAYOUT_TIME_' . getConfig('doubler_send_mode'));
 
 // Generate table with already payed out doubles
-$content['payout_history'] = generateDoublerTable('0', 'Y', 'N', 'DESC');
+$content['payout_history'] = generateDoublerTable(0, 'Y', 'N', 'DESC');
 
 // Generate timemark
 $content['timeout_mark'] = createFancyTime(getConfig('doubler_timeout'));