X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_doubler.php;h=190be0268fb1c9786c0527a9a3769f7600160a94;hp=a6c531fb7c799aa0f4abec03a1ee07bc564b3d27;hb=596c8ab32594401ca84abfbfe35513ddfff31bec;hpb=c2e17d983fcbc0c3bd1dd37908d87c678f0367df diff --git a/inc/modules/admin/what-list_doubler.php b/inc/modules/admin/what-list_doubler.php index a6c531fb7c..190be0268f 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'"); + // And the same for waiting pouts (direct and referral) + $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_' . getRequestElement('do'), FALSE, $content); // [EOF] ?>