From 87171db02fa3163b7a07d04193bc326c626bc8cc Mon Sep 17 00:00:00 2001 From: quix0r Date: Wed, 23 Jan 2013 18:27:44 +0000 Subject: [PATCH] Maybe better this way? --- mailid.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mailid.php b/mailid.php index 2e19762f53..e14fcc9c1d 100644 --- a/mailid.php +++ b/mailid.php @@ -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(); -- 2.39.5