[dw-free] Fix error with no remote.
[commit: http://hg.dwscoalition.org/dw-free/rev/f73610f26ec3]
Fix error with no remote.
Patch by
mark.
Files modified:
Fix error with no remote.
Patch by
![[staff profile]](https://www.dreamwidth.org/img/silk/identity/user_staff.png)
Files modified:
- htdocs/interests.bml
-------------------------------------------------------------------------------- diff -r f10d98c9b5a6 -r f73610f26ec3 htdocs/interests.bml --- a/htdocs/interests.bml Mon Jul 27 03:17:53 2009 +0000 +++ b/htdocs/interests.bml Mon Jul 27 04:06:59 2009 +0000 @@ -26,7 +26,7 @@ body<= my $remote = LJ::get_remote(); - my $maxinterests = $remote->get_cap( 'interests' ); + my $maxinterests = $remote ? $remote->get_cap( 'interests' ) : 0; my $table = sub { $_[0]->{'journaltype'} eq 'C' ? 'comminterests' : 'userinterests' }; --------------------------------------------------------------------------------