mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:40:16 +00:00
Use defaults for setting session variables in index.php
This commit is contained in:
parent
87b19dd9ac
commit
3df7502dcf
1 changed files with 3 additions and 12 deletions
15
index.php
15
index.php
|
@ -166,19 +166,10 @@ if (! x($_SESSION, 'authenticated')) {
|
||||||
$a->page['htmlhead'] = '';
|
$a->page['htmlhead'] = '';
|
||||||
$a->page['end'] = '';
|
$a->page['end'] = '';
|
||||||
|
|
||||||
|
$_SESSION['sysmsg'] = defaults($_SESSION, 'sysmsg' , []);
|
||||||
|
$_SESSION['sysmsg_info'] = defaults($_SESSION, 'sysmsg_info' , []);
|
||||||
|
$_SESSION['last_updated'] = defaults($_SESSION, 'last_updated', []);
|
||||||
|
|
||||||
if (x($_SESSION, 'sysmsg') === false) {
|
|
||||||
$_SESSION['sysmsg'] = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (x($_SESSION, 'sysmsg_info') === false) {
|
|
||||||
$_SESSION['sysmsg_info'] = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
// Array for informations about last received items
|
|
||||||
if (x($_SESSION, 'last_updated') === false) {
|
|
||||||
$_SESSION['last_updated'] = [];
|
|
||||||
}
|
|
||||||
/*
|
/*
|
||||||
* check_config() is responsible for running update scripts. These automatically
|
* check_config() is responsible for running update scripts. These automatically
|
||||||
* update the DB schema whenever we push a new one out. It also checks to see if
|
* update the DB schema whenever we push a new one out. It also checks to see if
|
||||||
|
|
Loading…
Reference in a new issue