aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-31 16:38:22 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-31 16:38:22 -0700
commitf0b640058427aff2d9d60899f9005980ab89c0ef (patch)
treea7e2f2d7fca62e73f725dc072fa1944150a86bd0 /index.php
parentceabd7629bab4a490515aa8608acf0738159e1d0 (diff)
downloadvolse-hubzilla-f0b640058427aff2d9d60899f9005980ab89c0ef.tar.gz
volse-hubzilla-f0b640058427aff2d9d60899f9005980ab89c0ef.tar.bz2
volse-hubzilla-f0b640058427aff2d9d60899f9005980ab89c0ef.zip
more lint
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 7 insertions, 2 deletions
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);
}
}