X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-mediadata.php;h=4da05fad705987ece86f6838748d8899161af892;hp=75fc6c11eafe712a510e1177c45ffe12efb35896;hb=9afd6ec5878544a7982c50ed9c0dd7de37606d5b;hpb=3c23bfaee208fa12adf5cdd9d8e9882612199d03 diff --git a/inc/modules/guest/what-mediadata.php b/inc/modules/guest/what-mediadata.php index 75fc6c11ea..4da05fad70 100644 --- a/inc/modules/guest/what-mediadata.php +++ b/inc/modules/guest/what-mediadata.php @@ -64,7 +64,7 @@ $content['user_count'] = ($content['user_confirmed'] + $content['user_unco $content['mt_start'] = generateDateTime(getConfig('mt_start'), 3); // Project timestamp when number of members are reached -$PROJECTED = 0; +$PROJECTED = '0'; if ($content['user_count'] > 0) { // @TODO Find a better formular than this one $PROJECTED = round((time() - getConfig('mt_start')) / $content['user_count'] * getConfig('mt_stage') + getConfig('mt_start')); @@ -92,28 +92,28 @@ $content['max'] = countSumTotalData('CONFIRMED', 'user_data', 'max_mails', 'stat $content['rec'] = countSumTotalData('CONFIRMED', 'user_data', 'receive_mails', 'status', false, " AND `receive_mails` > 0"); // Initial lots of variables -$bmails = 0; $sent = 0; $max = 0; $rec = 0; $clicks = 0; +$bmails = '0'; $sent = '0'; $max = '0'; $rec = '0'; $clicks = '0'; // Mail orders (only current) $nmails = getMediadataEntry('normal_orders'); -if (empty($nmails)) $nmails = 0; +if (empty($nmails)) $nmails = '0'; // Mails sent so far $clicks = getMediadataEntry('normal_clicks'); $sent = getMediadataEntry('normal_send'); -if (empty($sent)) $sent = 0; -if (empty($clicks)) $clicks = 0; +if (empty($sent)) $sent = '0'; +if (empty($clicks)) $clicks = '0'; // Bonus mails if (isExtensionActive('bonus')) { $bmails = getMediadataEntry('bonus_orders'); - if (empty($bmails)) $bmails = 0; + if (empty($bmails)) $bmails = '0'; // Count bonus mails clicks / sent mails $dmy = getMediadataEntry('bonus_clicks'); $dmy2 = getMediadataEntry('bonus_send'); - if (empty($dmy)) $dmy = 0; - if (empty($dmy2)) $dmy2 = 0; + if (empty($dmy)) $dmy = '0'; + if (empty($dmy2)) $dmy2 = '0'; $sent += $dmy2; $clicks += $dmy; } // END - if @@ -128,10 +128,10 @@ if ($sent > 0) $clr = $clicks / $sent * 100; $content['_clr'] = translateComma($clr) . '%'; // Load jackpot -$jackpot = 0; +$jackpot = '0'; if (isExtensionActive('jackpot')) $jackpot = getJackpotPoints(); -if (empty($jackpot)) $jackpot = 0; +if (empty($jackpot)) $jackpot = '0'; $content['jackpot'] = translateComma($jackpot); // Total referal link clicks, total logins @@ -145,9 +145,9 @@ SQL_FREERESULT($result); // Get total points $points = getMediadataEntry('total_points'); -if (empty($points)) $points = 0; -if (empty($ref)) $ref = 0; -if (empty($logins)) $logins = 0; +if (empty($points)) $points = '0'; +if (empty($ref)) $ref = '0'; +if (empty($logins)) $logins = '0'; $content['total_points'] = translateComma($points); $content['total_refclicks'] = $ref; @@ -161,9 +161,9 @@ $result = SQL_QUERY("SELECT SUM(`counter`) AS cnt, SUM(`clicks`) AS clx FROM `{? list($views, $clicks) = SQL_FETCHROW($result); SQL_FREERESULT($result); -if (empty($total)) $total = 0; -if (empty($views)) $views = 0; -if (empty($clicks)) $clicks = 0; +if (empty($total)) $total = '0'; +if (empty($views)) $views = '0'; +if (empty($clicks)) $clicks = '0'; $content['ref_total'] = $total; $content['ref_views'] = $views; @@ -235,7 +235,7 @@ WHERE __FILE__, __LINE__); list($holiday) = SQL_FETCHROW($result); SQL_FREERESULT($result); - if (empty($holiday)) $holiday = 0; + if (empty($holiday)) $holiday = '0'; $data = array( 'lang' => getMessage('MEDIA_HOLIDAY_COUNT'), 'value' => $holiday @@ -257,8 +257,8 @@ ON __FILE__, __LINE__); list($count_in, $points_in) = SQL_FETCHROW($result); SQL_FREERESULT($result); - if (empty($count_in)) $count_in = 0; - if (empty($points_in)) $points_in = 0; + if (empty($count_in)) $count_in = '0'; + if (empty($points_in)) $points_in = '0'; $result = SQL_QUERY("SELECT COUNT(t.id), SUM(t.points) FROM `{?_MYSQL_PREFIX?}_user_transfers_out` AS t @@ -267,8 +267,8 @@ ON t.userid=d.userid", __FILE__, __LINE__); list($count_out, $points_out) = SQL_FETCHROW($result); SQL_FREERESULT($result); - if (empty($count_out)) $count_out = 0; - if (empty($points_out)) $points_out = 0; + if (empty($count_out)) $count_out = '0'; + if (empty($points_out)) $points_out = '0'; // Add header $OUT_SPECIAL .= loadTemplate('mediadata_extra_hrow', true, getMessage('MEDIA_TRANSFER_HEADER'));