debug_report_bug() should be used as a replacement for app_die() calls
[mailer.git] / inc / libs / bonus_functions.php
index 21ef2d6d1b2dcbefc3e2aa155f0a8498496dcc7c..5c99bb2e47dae5cfc4a58541cdc0a55591f6ecfd 100644 (file)
@@ -291,7 +291,7 @@ function FILTER_ADD_LOGIN_BONUS () {
        // Is the user data valid?
        if (!isMember()) {
                // Do only run for logged in members
-               debug_report_bug('Please only run this filter for logged in users.');
+               debug_report_bug(__FUNCTION__, __LINE__, 'Please only run this filter for logged in users.');
        } // END - if
 
        // Bonus is not given by default ;-)
@@ -309,7 +309,7 @@ WHERE
 LIMIT 1",
                        array(
                                getMemberId()
-                       ), __FILE__, __LINE__
+                       ), __FUNCTION__, __LINE__
                );
 
                // Updated entry?