Fixes for when no apps are enabled for a group/user to setup default preferences.

This commit is contained in:
skeeter 2001-08-21 00:51:03 +00:00
parent a3932c4008
commit cc37142599
2 changed files with 3 additions and 2 deletions

View File

@ -283,6 +283,7 @@
$apps->account_type = 'u'; $apps->account_type = 'u';
$apps->account_id = $_userData['account_id']; $apps->account_id = $_userData['account_id'];
$apps->account_apps = Array(Array()); $apps->account_apps = Array(Array());
$apps_before = $apps->read_account_specific();
if ($_userData['account_permissions']) if ($_userData['account_permissions'])
{ {
while($app = each($_userData['account_permissions'])) while($app = each($_userData['account_permissions']))
@ -290,7 +291,7 @@
if($app[1]) if($app[1])
{ {
$apps->add($app[0]); $apps->add($app[0]);
if(!$apps_before[$app[0]]) if(!@$apps_before[$app[0]] || @$apps_before == False)
{ {
$apps_after[] = $app[0]; $apps_after[] = $app[0];
} }

View File

@ -99,7 +99,7 @@
if($app[1]) if($app[1])
{ {
$apps->add($app[0]); $apps->add($app[0]);
if(!$apps_before[$app[0]]) if(!@$apps_before[$app[0]] || @$apps_before == False)
{ {
$new_apps[] = $app[0]; $new_apps[] = $app[0];
} }