Don't try to use journal base if we have no user to work with.

        Patch by afuna. 

diffs (12 lines):

diff -r 00f6e0a5698b -r db5d61eac59c htdocs/preview/entry.bml
--- a/htdocs/preview/entry.bml  Sat Jul 18 09:45:14 2009 -0500
+++ b/htdocs/preview/entry.bml  Sat Jul 18 21:14:47 2009 -0500
@@ -194,7 +194,7 @@
         my @taglist = ();
         LJ::Tags::is_valid_tagstring( $POST{prop_taglist}, \...@taglist );
         if ( @taglist ) {
-            my $base = $u->journal_base;
+            my $base = $u ? $u->journal_base : "";
             $current{Tags} = join( ', ',
                                    map { "<a href='$base/tag/" . LJ::eurl( $_ 
) . "'>" . LJ::ehtml( $_ ) . "</a>" }
                                    @taglist
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to