Typo 'referral'->'referal' fixed, more 'empty version' fixed
[mailer.git] / inc / modules / admin / what-list_refs.php
index 6a1085f..7f23f8b 100644 (file)
@@ -103,7 +103,7 @@ ORDER BY
                                                        // Is the data there?
                                                        if (fetchUserData($content['refid'])) {
                                                                // Check for referals
-                                                               $refs_cnt = countSumTotalData(getUserData('userid'), 'refsystem', 'counter');
+                                                               $refs_cnt = countSumTotalData(getUserData('userid'), 'user_refs', 'id', 'userid', true);
 
                                                                // Prepare data for the template
                                                                $content = array(