madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20607: LJSUP-10430: Error when try to create en...

Committer: sbelyaev
LJSUP-10430: Error when try to create entry
U   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;

Tags: livejournal, madeon, pm, sbelyaev
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments