]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-sub_points.php
Extension ext-network continued:
[mailer.git] / inc / modules / admin / what-sub_points.php
index 52da92ab38a6595d28bdb508b3ecb2b2c0e22e14..439e4a1e981ee1844a643689db9a93fae68f18c7 100644 (file)
@@ -57,12 +57,13 @@ if (getRequestElement('userid') == 'all') {
                        $content = merge_array($content, $row);
 
                        // Ok, add points to used points, send an email to him and ignore return status
-                       subtractPoints('admin_all', $content['userid'], postRequestElement('points'));
+                       subtractPoints('admin_sub_all', $content['userid'], postRequestElement('points'));
 
                        // Prepare content
                        $content = array(
-                               'reason' => SQL_ESCAPE(postRequestElement('reason')),
-                               'points' => bigintval(postRequestElement('points'))
+                               'reason'  => SQL_ESCAPE(postRequestElement('reason')),
+                               'points'  => bigintval(postRequestElement('points')),
+                               'subject' => 'admin_sub_all',
                        );
 
                        // Load message and send it away
@@ -87,12 +88,13 @@ if (getRequestElement('userid') == 'all') {
 
                if ((isFormSent()) && (isPostRequestElementSet('points'))) {
                        // Ok, add to used points, send an email to him and ignore return status
-                       subtractPoints('admin_single', bigintval(getRequestElement('userid')), postRequestElement('points'));
+                       subtractPoints('admin_sub_single', bigintval(getRequestElement('userid')), postRequestElement('points'));
 
                        // Prepare content
                        $content = array(
-                               'reason' => SQL_ESCAPE(postRequestElement('reason')),
-                               'points' => bigintval(postRequestElement('points'))
+                               'reason'  => SQL_ESCAPE(postRequestElement('reason')),
+                               'points'  => bigintval(postRequestElement('points')),
+                               'subject' => 'admin_sub_single',
                        );
 
                        // Load email and send it away