]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-sub_points.php
Fix for fatal error and naming convention applied
[mailer.git] / inc / modules / admin / what-sub_points.php
index 804e29413fef74ece1565f4e33fa47970c5eafa5..94f4f9ded805bb57164edfe8f720aa0cb8ef9fd5 100644 (file)
@@ -54,7 +54,7 @@ if (REQUEST_GET('uid') == "all") {
        define('__POINTS_VALUE', REQUEST_POST('points'));
 
        // Is the form sent?
-       if ((IS_FORM_SENT()) && (REQUEST_POST('points') > 0)) {
+       if ((isFormSent()) && (REQUEST_POST('points') > 0)) {
                $result_main = SQL_QUERY("SELECT userid, email FROM `{!_MYSQL_PREFIX!}_user_data` WHERE `status`='CONFIRMED' ORDER BY `userid` ASC",
                __FILE__, __LINE__);
                while ($content = SQL_FETCHARRAY($result_main)) {
@@ -87,7 +87,7 @@ if (REQUEST_GET('uid') == "all") {
                // Selected user does exist
                $content = SQL_FETCHARRAY($result);
 
-               if ((IS_FORM_SENT()) && (REQUEST_ISSET_POST(('points')))) {
+               if ((isFormSent()) && (REQUEST_ISSET_POST(('points')))) {
                        // Ok, add to used points and send an email to him...
                        SUB_POINTS("admin_single", bigintval(REQUEST_GET('uid')), REQUEST_POST('points'));