diff --git a/modules/themeinstallator/themeinstallator.php b/modules/themeinstallator/themeinstallator.php
index 753a355cc..15c383ec5 100644
--- a/modules/themeinstallator/themeinstallator.php
+++ b/modules/themeinstallator/themeinstallator.php
@@ -559,12 +559,12 @@ class ThemeInstallator extends Module
$errors .= '';
}
- if (!empty($msg))
- $this->_msg .= parent::displayConfirmation($msg);
-
if (isset($error))
$this->_msg .= parent::displayError($errors);
+ if (!empty($msg))
+ $this->_msg .= parent::displayConfirmation($msg);
+
$this->_html .= '