]> git.mxchange.org Git - mailer.git/commitdiff
Fix for userid=0 and if code is empty debug_report_bug() is called
authorRoland Häder <roland@mxchange.org>
Thu, 19 Nov 2009 19:57:20 +0000 (19:57 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 19 Nov 2009 19:57:20 +0000 (19:57 +0000)
mailid_top.php

index 137a272df7bb6ed29764814fcb47dd1ec0b870c4..0c5cee191397d832666c8daf1ede6c6d22443d61 100644 (file)
@@ -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;