madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20050: LJSUP-9307: Entry form problem without r...

Committer: sbelyaev
LJSUP-9307: Entry form problem without remote
U   branches/delayed_entries/cgi-bin/LJ/Widget/EntryForm.pm
Modified: branches/delayed_entries/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- branches/delayed_entries/cgi-bin/LJ/Widget/EntryForm.pm	2011-09-15 12:41:31 UTC (rev 20049)
+++ branches/delayed_entries/cgi-bin/LJ/Widget/EntryForm.pm	2011-09-16 00:32:02 UTC (rev 20050)
@@ -755,7 +755,7 @@
                 'label' => "",
             });
 
-            my $sticky_exists = $journalu->has_sticky_entry && !$selected;
+            my $sticky_exists = $journalu ? $journalu->has_sticky_entry && !$selected : undef;
             my $sticky_text = $sticky_exists ? $BML::ML{'entryform.sticky_replace.edit'} :
                                                $BML::ML{'entryform.sticky.edit'};
             return qq{$sticky_check <label for='sticky_type' class='right options'>
@@ -1590,7 +1590,7 @@
 sub option {
     my ($u) = @_;
     
-    my $timezone = $u->prop("timezone");
+    my $timezone = $u ? $u->prop("timezone") : undef;
     my @options = timezone_options;
     
     my $ret = LJ::html_select({

Tags: livejournal, madeon, pm
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