Fix for caching and ['apps'].

This commit is contained in:
skeeter 2001-07-10 03:50:38 +00:00
parent 2ccd875cad
commit f6c3126a54

View File

@ -141,7 +141,7 @@
return False; return False;
} }
if ($phpgw_info['server']['sessions_checkip']) if (@$phpgw_info['server']['sessions_checkip'])
{ {
if (PHP_OS != 'Windows' && (! $phpgw_info['user']['session_ip'] || $phpgw_info['user']['session_ip'] != $this->getuser_ip())) if (PHP_OS != 'Windows' && (! $phpgw_info['user']['session_ip'] || $phpgw_info['user']['session_ip'] != $this->getuser_ip()))
{ {
@ -351,6 +351,11 @@
if(!empty($this->user)) if(!empty($this->user))
{ {
$phpgw->preferences->data = $this->user['preferences']; $phpgw->preferences->data = $this->user['preferences'];
if (!isset($phpgw_info['apps']) ||
gettype($phpgw_info['apps']) != 'array')
{
$phpgw->applications->read_installed_apps();
}
} }
else else
{ {