Provide a fallback for contents of .wgaccess files. Fixes bug #12328

This commit is contained in:
Colin Kuskie 2012-02-24 22:27:44 -08:00
parent 99fa73ab34
commit d2f157ddea
2 changed files with 4 additions and 3 deletions

View file

@ -4,6 +4,7 @@
- fixed #12327: HttpProxy does not clean up cookie jar storage locations - fixed #12327: HttpProxy does not clean up cookie jar storage locations
- fixed #12329: FlatDiscount Sku forces you to enter in negative numbers for price - fixed #12329: FlatDiscount Sku forces you to enter in negative numbers for price
- fixed #12334: Company name with : in it breaks email sender identity - fixed #12334: Company name with : in it breaks email sender identity
- fixed #12328: invalid wgaccess file in uploads
7.10.24 7.10.24
- fixed #12318: asset error causes asset manager to fail - fixed #12318: asset error causes asset manager to fail

View file

@ -69,9 +69,9 @@ sub handler {
} }
else { else {
my $privs = JSON->new->decode($fileContents); my $privs = JSON->new->decode($fileContents);
@users = @{ $privs->{users} }; @users = @{ $privs->{users} || [] };
@groups = @{ $privs->{groups} }; @groups = @{ $privs->{groups} || [] };
@assets = @{ $privs->{assets} }; @assets = @{ $privs->{assets} || [] };
$state = $privs->{state}; $state = $privs->{state};
} }