[dw-nonfree] Prohibit Conditional Declarations (backend cleanup)
[commit: http://hg.dwscoalition.org/dw-nonfree/rev/24572485f1ef]
http://bugs.dwscoalition.org/show_bug.cgi?id=2270
Cleanup, to proactively defend against future issues. See bug for details
Patch by
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2270
Cleanup, to proactively defend against future issues. See bug for details
Patch by
Files modified:
- cgi-bin/DW/Hooks/EntryForm.pm
--------------------------------------------------------------------------------
diff -r a38523a2c6b0 -r 24572485f1ef cgi-bin/DW/Hooks/EntryForm.pm
--- a/cgi-bin/DW/Hooks/EntryForm.pm Mon Jan 11 04:00:23 2010 +0000
+++ b/cgi-bin/DW/Hooks/EntryForm.pm Sun Jan 17 15:43:05 2010 +0000
@@ -30,7 +30,7 @@ LJ::Hooks::register_hook( 'entryforminfo
};
my $usejournal = $journal ? "?usejournal=$journal" : "";
- my $ju = LJ::load_user( $journal ) if $journal;
+ my $ju = $journal ? LJ::load_user( $journal ) : undef;
my $can_make_poll = 0;
$can_make_poll = $remote->can_create_polls if $remote;
--------------------------------------------------------------------------------
