Committer: sbelyaev
LJSUP-9307: Entry form problem without remoteU 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({