From f0b640058427aff2d9d60899f9005980ab89c0ef Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sun, 31 Oct 2010 16:38:22 -0700 Subject: more lint --- index.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 81d089dfb..895e439ea 100644 --- a/index.php +++ b/index.php @@ -31,9 +31,12 @@ $a->init_pagehead(); session_start(); -if((x($_SESSION,'authenticated')) || (x($_POST['auth-params']))) +if((x($_SESSION,'authenticated')) || (x($_POST,'auth-params'))) require("auth.php"); +if(! x($_SESSION,'sysmsg')) + $_SESSION['sysmsg'] = ''; + if($install) $a->module = 'install'; else @@ -71,7 +74,9 @@ if($a->module_loaded) { if((! $a->error) && (function_exists($a->module . '_content'))) { $func = $a->module . '_content'; - $a->page['content'] .= $func($a); + if(! x($a->page,'content')) + $a->page['content'] = ''; + $a->page['content'] .= $func($a); } } -- cgit v1.2.3