Committer: sbelyaev
LJSUP-10430: Error when try to create entryU trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm =================================================================== --- trunk/cgi-bin/LJ/Widget/EntryForm.pm 2011-11-22 14:22:03 UTC (rev 20606) +++ trunk/cgi-bin/LJ/Widget/EntryForm.pm 2011-11-22 15:05:46 UTC (rev 20607) @@ -427,7 +427,7 @@ if ($opts->{'mode'} eq "update") { # communities the user can post in my $usejournal = $opts->{'usejournal'}; - if ($usejournal) { + if ($usejournal && $remote) { my $posterid = $remote->userid; my $journalu = LJ::load_user($usejournal); my $ownerid = $journalu->userid;