create cache in accountContainer if needed

This commit is contained in:
Roland Gruber 2004-04-04 13:03:30 +00:00
parent a32c4a106b
commit cc0fe1d949
1 changed files with 4 additions and 0 deletions

View File

@ -215,6 +215,10 @@ class accountContainer {
$this->cache = 'cache'; $this->cache = 'cache';
$this->header2 = 'header'; $this->header2 = 'header';
$this->module['main'] = new main($this->base); $this->module['main'] = new main($this->base);
// create cache if needed
if (!isset($_SESSION['cache'])) {
$_SESSION['cache'] = new cache();
}
return 0; return 0;
} }