aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/common.inc.php1
-rw-r--r--include/page_messages.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index 7c645a236..40e176dea 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -64,6 +64,7 @@ $conf = array();
$page = array(
'infos' => array(),
'errors' => array(),
+ 'warnings' => array(),
);
$user = array();
$lang = array();
diff --git a/include/page_messages.php b/include/page_messages.php
index aea8d7afd..58cd5d0a0 100644
--- a/include/page_messages.php
+++ b/include/page_messages.php
@@ -24,7 +24,7 @@
// messages only if no redirection
if ($template->get_template_vars('page_refresh') === null)
{
- foreach (array('errors','infos') as $mode)
+ foreach (array('errors','infos','warnings') as $mode)
{
if (isset($_SESSION['page_'.$mode]))
{