X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_doubler.php;h=39fbab603b0f2d39a851f610ff644a27e90864c0;hb=1410e014d23f244e73d3a7916a61c2473416bab9;hp=a6c531fb7c799aa0f4abec03a1ee07bc564b3d27;hpb=dbb6aa4eaeff7c3bab27f143d881781380d43d41;p=mailer.git
diff --git a/inc/modules/admin/what-list_doubler.php b/inc/modules/admin/what-list_doubler.php
index a6c531fb7c..39fbab603b 100644
--- a/inc/modules/admin/what-list_doubler.php
+++ b/inc/modules/admin/what-list_doubler.php
@@ -1,7 +1,7 @@
0) {
+ if ($count > 0) {
// Something was payed out
- $sumAlready += $cnt;
- $content['already_direct_link'] = "".$cnt."";
+ $sumAlready += $count;
+ $content['already_direct_link'] = '' . $count . '';
} // END - if
- $cnt = countSumTotalData('Y','doubler','id','completed',true, " AND `is_ref`='Y'");
+ $count = countSumTotalData('Y','doubler','id','completed',true, " AND `is_ref`='Y'");
- if ($cnt > 0) {
+ if ($count > 0) {
// Something was payed out
- $sumAlready += $cnt;
- $content['already_ref_link'] = "".$cnt."";
+ $sumAlready += $count;
+ $content['already_ref_link'] = '' . $count . '';
} // END - if
// And the same for waiting pouts (direct and referal)
- $cnt = countSumTotalData('N','doubler','id','completed',true, " AND `is_ref`='N'");
+ $count = countSumTotalData('N','doubler','id','completed',true, " AND `is_ref`='N'");
- if ($cnt > 0) {
+ if ($count > 0) {
// Something was payed out
- $sumWaiting += $cnt;
- $content['waiting_direct_link'] = "".$cnt."";
+ $sumWaiting += $count;
+ $content['waiting_direct_link'] = '' . $count . '';
} // END - if
- $cnt = countSumTotalData('N','doubler','id','completed',true, " AND `is_ref`='Y'");
+ $count = countSumTotalData('N','doubler','id','completed',true, " AND `is_ref`='Y'");
- if ($cnt > 0) {
+ if ($count > 0) {
// Something was payed out
- $sumWaiting += $cnt;
- $content['waiting_ref_link'] = "".$cnt."";
+ $sumWaiting += $count;
+ $content['waiting_ref_link'] = '' . $count . '';
} // END - if
// Links for all
- $content['already_all_link'] = "".$sumAlready."";
- $content['waiting_all_link'] = "".$sumWaiting."";
+ $content['already_all_link'] = '' . $sumAlready . '';
+ $content['waiting_all_link'] = '' . $sumWaiting . '';
// All data is loaded here...
break;
} // END - switch
// Load mode template
-loadTemplate('admin_list_doubler_' . getRequestElement('mode'), false, $content);
+loadTemplate('admin_list_doubler_' . getRequestParameter('mode'), false, $content);
// [EOF]
?>