Fix error when visiting a nonexistent journal.

        Patch by exor674. 

diffs (12 lines):

diff -r e051c4037beb -r 3ed8be398cda cgi-bin/Apache/LiveJournal.pm
--- a/cgi-bin/Apache/LiveJournal.pm     Wed Jul 01 15:11:39 2009 +0000
+++ b/cgi-bin/Apache/LiveJournal.pm     Wed Jul 01 15:18:13 2009 +0000
@@ -494,7 +494,7 @@ sub trans
             # the viewed user is deleted / suspended OR
             # the remote user owns the journal we're viewing OR
             # the remote user posted the entry we're viewing
-            my $should_show_page = ! $u->is_visible || 
+            my $should_show_page = ( $u && ! $u->is_visible ) || 
                                    ( $remote && 
                                        ( $remote->can_manage( $u ) || ( $entry 
&& $remote->equals( $poster ) ) )
                                    );
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to