// Login problems?
if (!empty($errorCode)) {
- // @TODO Move this HTML code into a template
- $message = "<tr>
- <td colspan=\"4\" align=\"center\">
- <span class=\"guest_failed\">";
-
// Do we have a userid set?
if (isSessionVariableSet('current_userid')) {
// Then prefetch data for this account
fetchUserData(getSession('current_userid'));
} // END - if
- // Convert the code to message
- $message .= getMessageFromErrorCode($errorCode);
-
- // Continue with HTML
- $message .= "</span>
+ // @TODO Move this HTML code into a template
+ $content['message'] = '<tr>
+ <td colspan="4" align="center">
+ <span class="guest_failed">' . getMessageFromErrorCode($errorCode) . '</span>
</td>
-</tr>\n";
- $content['message'] = $message;
+</tr>';
} // END - if
// Display login form with resend-password form