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 137a272..0c5cee1 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;