]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-unlock_sponsor.php
More rewrites, and output-mode fixed (we should documentate this)
[mailer.git] / inc / modules / admin / what-unlock_sponsor.php
index 1684b2ae8ab73ff4f04b3a0e948bf6b6c581bb87..af6e4257c062a90813122219c081b52314beb23f 100644 (file)
@@ -83,7 +83,7 @@ ORDER BY sp.pay_name",
 
                                                // Set default email
                                                $content['email'] = getMessage('SPONSOR_NO_ADMIN');
-                                               if ($content['admin_id'] > '0') {
+                                               if ($content['admin_id'] > 0) {
                                                        // Load admin's email address for contact
                                                        $content['email'] = getAdminEmail($content['admin_id']);
                                                } // END - if
@@ -92,7 +92,7 @@ ORDER BY sp.pay_name",
                                                $data = array(
                                                        'admin_id'   => $content['email'],
                                                        'order' => ($content['pay_count'] * $content['pay_rate'])." ".$content['pay_currency'],
-                                                       'stamp' => generateDateTime($content['pay_ordered'], '2'),
+                                                       'stamp' => generateDateTime($content['pay_ordered'], 2),
                                                        'pname' => $content['pay_name'],
                                                );
 
@@ -197,7 +197,7 @@ if (SQL_NUMROWS($result) > 0) {
                        'family'  => $content['family'],
                        'email'   => generateEmailLink($content['email'], 'sponsor_data'),
                        'remote'  => $content['remote_addr'],
-                       'created' => generateDateTime($content['sponsor_created'], '2'),
+                       'created' => generateDateTime($content['sponsor_created'], 2),
                );
 
                // Load row template and switch colors