mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Fixes for when no apps are enabled for a group/user to setup default preferences.
This commit is contained in:
parent
a3932c4008
commit
cc37142599
@ -283,6 +283,7 @@
|
||||
$apps->account_type = 'u';
|
||||
$apps->account_id = $_userData['account_id'];
|
||||
$apps->account_apps = Array(Array());
|
||||
$apps_before = $apps->read_account_specific();
|
||||
if ($_userData['account_permissions'])
|
||||
{
|
||||
while($app = each($_userData['account_permissions']))
|
||||
@ -290,7 +291,7 @@
|
||||
if($app[1])
|
||||
{
|
||||
$apps->add($app[0]);
|
||||
if(!$apps_before[$app[0]])
|
||||
if(!@$apps_before[$app[0]] || @$apps_before == False)
|
||||
{
|
||||
$apps_after[] = $app[0];
|
||||
}
|
||||
|
@ -99,7 +99,7 @@
|
||||
if($app[1])
|
||||
{
|
||||
$apps->add($app[0]);
|
||||
if(!$apps_before[$app[0]])
|
||||
if(!@$apps_before[$app[0]] || @$apps_before == False)
|
||||
{
|
||||
$new_apps[] = $app[0];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user