]> git.mxchange.org Git - mailer.git/blobdiff - mailid.php
Updated copyright notice as there are changes in this year
[mailer.git] / mailid.php
index 2e19762f53d35be5d43fe1431efffd574047bb92..ca7d9694bd7ba565966388282199f6e2945562f8 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -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();