[dw-free] recent comments page auto vivification
[commit: http://hg.dwscoalition.org/dw-free/rev/ce5102c529ee]
http://bugs.dwscoalition.org/show_bug.cgi?id=1645
Don't call methods on undefined values.
Patch by
denise.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1645
Don't call methods on undefined values.
Patch by
![[staff profile]](https://www.dreamwidth.org/img/silk/identity/user_staff.png)
Files modified:
- htdocs/tools/recent_comments.bml
-------------------------------------------------------------------------------- diff -r 315cee86e43d -r ce5102c529ee htdocs/tools/recent_comments.bml --- a/htdocs/tools/recent_comments.bml Thu Aug 20 17:50:12 2009 +0000 +++ b/htdocs/tools/recent_comments.bml Thu Aug 20 16:52:32 2009 -0500 @@ -133,7 +133,7 @@ body<= next if $r->{state} eq "D"; my $pu = $us->{$r->{posterid}}; - next if $pu->is_expunged || $pu->is_suspended; + next if $pu && ( $pu->is_expunged || $pu->is_suspended ); $r->{'props'} = $props{$r->{'jtalkid'}}; --------------------------------------------------------------------------------