Several minor rewrites, getter GET_JACKPOT_POINTS() added
[mailer.git] / inc / doubler_send.php
index d3ae495f163ee4df5d40fa52a063bff64c0b2c41..7e40aaa6d5939253cbe5ea0d7f8e1a6f0dc3dd23 100644 (file)
@@ -99,6 +99,7 @@ if (((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == 'Y'))
 
                        // Zero refid when empty (might be helpful!)
                        if (empty($ref)) $ref = 0;
+
                        if (($ref > 0) && ($GLOBALS['doubler_uid'] == $content['userid']) && (!empty($ref))) {
                                // Referal points found so add them and set line(s) to completed='Y'
                                $content['points'] += $ref;