diff --git a/themes/lite/page.class.php b/themes/lite/page.class.php
index dbd0b549..b4b34207 100644
--- a/themes/lite/page.class.php
+++ b/themes/lite/page.class.php
@@ -77,15 +77,16 @@ class Page extends BasePage
$custom_sublinks .= "";
}
+ $flash_html = $this->flash ? "".nl2br(html_escape(implode("\n", $this->flash)))."" : "";
+
if (!$this->left_enabled) {
$left_block_html = "";
$main_block_html = "{$main_block_html}";
} else {
$left_block_html = "";
- $main_block_html = "{$main_block_html}";
+ $main_block_html = "$flash_html{$main_block_html}";
}
- $flash_html = $this->flash ? "".nl2br(html_escape(implode("\n", $this->flash)))."" : "";
$head_html = $this->head_html();
$footer_html = $this->footer_html();
@@ -100,7 +101,6 @@ class Page extends BasePage
$sub_block_html
$left_block_html
- $flash_html
$main_block_html