X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=mailid_top.php;h=137a272df7bb6ed29764814fcb47dd1ec0b870c4;hp=6a4e32f4a5430ae5b546c96d2062b8a0bfbc24be;hb=606e585919ff565b55fb3c2cdee4a80c4e61a9c6;hpb=9f6c30cc0e06098171d773d671292081ecee3d29 diff --git a/mailid_top.php b/mailid_top.php index 6a4e32f4a5..137a272df7 100644 --- a/mailid_top.php +++ b/mailid_top.php @@ -1,7 +1,7 @@ 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErrors() == 0)) { +if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErrors() == '0')) { // No image? Then output header if ($mode != 'img') loadIncludeOnce('inc/header.php'); @@ -125,10 +125,10 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErr SQL_FREERESULT($result_mailid); // Set sender to 0 when we have a bonus mail - if ($ltype == 'BONUS') $sender = 0; + if ($ltype == 'BONUS') $sender = '0'; // Is the user id valid? - if (fetchUserData($url_userId) === true) { + if (fetchUserData($url_userid) === true) { // Is the user status CONFIRMED? if (getUserData('status') == 'CONFIRMED') { // User has confirmed his account so we can procede... @@ -171,9 +171,9 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErr // Is this entry valid? if ($isValid === true) { - if (($time == 0) && ($payment > 0)) $time = 1; + if (($time == '0') && ($payment > 0)) $time = 1; if (($time > 0) && ($payment > 0)) { - $img_code = 0; + $img_code = '0'; if (!empty($code)) { // Generate code $img_code = generateRandomCode(getConfig('code_length'), $code, $url_userid, $urlId); @@ -183,7 +183,7 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErr switch ($mode) { case 'add': // Init stats data - $stats_data = 0; + $stats_data = '0'; // Count clicks // @TODO Rewrite this to a filter