]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_payouts.php
Simplified some more code:
[mailer.git] / inc / modules / admin / what-list_payouts.php
index 8d6a01fba22500cedfb83ca2acb9c019278a345a..bef227701f8ebd4e92dcacb3e21c81817d499f3b 100644 (file)
@@ -72,7 +72,7 @@ if (isGetRequestParameterSet(('pid'))) {
                // Load user's data
                if (!fetchUserData($userid)) {
                        // Abort here because it is not valid!
-                       debug_report_bug('No user account ' . $userid . ' found.');
+                       debug_report_bug(__FILE__, __LINE__, 'No user account ' . $userid . ' found.');
                } // END - if
 
                if ((getRequestParameter('do') == 'accept') && (!empty(getUserData('email')))) {
@@ -155,7 +155,7 @@ LIMIT 1",
                                                sendEmail(getUserData('email'), getMessage('MEMBER_PAYOUT_ACCEPTED_SUBJECT'), $message);
                                        } else {
                                                // Something goes wrong... :-(
-                                               $content = implode("<br />", $ret);
+                                               $content = implode('<br />', $ret);
                                                loadTemplate('admin_payout_failed_transfer', false, $content);
                                        }
                                } else {
@@ -265,16 +265,9 @@ ORDER BY
                                if (empty($content['target_bank']))    $content['target_bank']    = '---';
                        }
 
-                       // Remember data in array for the template
-                       $content = array(
-                               'sw'      => $SW,
-                               'ulink'   => generateUserProfileLink($content['userid']),
-                               'ptype'   => translateComma($content['payout_total']) . ' ' . $content['type'],
-                               'account' => $content['target_account'],
-                               'bank'    => $content['target_bank'],
-                               'tstamp'  => generateDateTime($content['payout_timestamp'], 2),
-                               'status'  => $content['status'],
-                       );
+                       // Add/Translate some data
+                       $content['sw']               = $SW;
+                       $content['payout_timestamp'] = generateDateTime($content['payout_timestamp'], 2);
 
                        // Add row and switch color
                        $OUT .= loadTemplate('admin_list_payouts_row', true, $content);