From 580b6e383a23fca37b6fc291ad86a02a6095693b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 19 Nov 2009 19:57:20 +0000 Subject: [PATCH] Fix for userid=0 and if code is empty debug_report_bug() is called --- mailid_top.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.39.5