]> git.mxchange.org Git - mailer.git/commitdiff
Maybe better this way?
authorRoland Häder <roland@mxchange.org>
Wed, 23 Jan 2013 18:27:44 +0000 (18:27 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 23 Jan 2013 18:27:44 +0000 (18:27 +0000)
mailid.php

index 2e19762f53d35be5d43fe1431efffd574047bb92..e14fcc9c1d356b7a4a6623afc1a87cd454f4eb7f 100644 (file)
@@ -242,20 +242,21 @@ if ((isValidId($data['userid'])) && (isValidId($data['id'])) && (!empty($data['t
 
        // Free result
        SQL_FREERESULT($result_main);
-
-       // Insert footer if no image
-       if ($data['do'] != 'img') {
-               // Write footer
-               loadIncludeOnce('inc/footer.php');
-       } // END - if
 } else {
        // Not all variables are set
        $data['error_code'] = getCode('ERROR_MAILID');
+       $data['do'] = 'failed';
 }
 
 // Error code is set?
 handleMailIdErrorCode($data['error_code']);
 
+// Insert footer if no image
+if ($data['do'] != 'img') {
+       // Write footer
+       loadIncludeOnce('inc/footer.php');
+} // END - if
+
 // Really all done here... ;-)
 doShutdown();