From b0bd8cd1f51fe22122a45f99993134edaa5f1558 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Mon, 7 Feb 2011 23:31:12 +0000 Subject: [PATCH] see changeset:952 ... move php code out of template into here git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@953 a1433add-5e2c-0410-b055-b7f2511e0802 --- common.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common.php b/common.php index 89b94833..ce34d196 100644 --- a/common.php +++ b/common.php @@ -19,7 +19,10 @@ if(!defined('POSTFIXADMIN')) { # already defined if called from setup.php session_start(); - define('POSTFIXADMIN', 1); # checked in included files + define('POSTFIXADMIN', 1); # checked in included files + if(empty($_SESSION['flash'])) { + $_SESSION['flash'] = array(); + } } $incpath = dirname(__FILE__);