From: Roland Häder Date: Thu, 19 Nov 2009 19:57:20 +0000 (+0000) Subject: Fix for userid=0 and if code is empty debug_report_bug() is called X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=580b6e383a23fca37b6fc291ad86a02a6095693b Fix for userid=0 and if code is empty debug_report_bug() is called --- diff --git a/mailid_top.php b/mailid_top.php index 137a272df7..0c5cee1913 100644 --- a/mailid_top.php +++ b/mailid_top.php @@ -288,7 +288,7 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErr // Load template loadTemplate($template, false, $content); - } else { + } elseif ($sender > 0) { // Wrong image code! So add points to sender's account addPointsDirectly('mailid_payback', $sender, $payment); @@ -325,6 +325,9 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErr // Load template loadTemplate($templ, false, $content); + } else { + // Cannot confirm! + debug_report_bug('No code given.'); } break;