From: Roland Häder Date: Wed, 23 Jan 2013 18:27:44 +0000 (+0000) Subject: Maybe better this way? X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=57e61ecfebf491ac44d8c2dfccfc7244d930f614;p=mailer.git Maybe better this way? --- 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();