wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r20902: LJSUP-10815

Committer: gprochaev
LJSUP-10815

U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-01-16 09:01:20 UTC (rev 20901)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-01-16 09:01:39 UTC (rev 20902)
@@ -1581,7 +1581,7 @@
     $insert_photos = [ grep { $_ } map {
             my $photo = $_;
 
-            my $res = $photo->is_valid ? {
+            my $res = $photo && $photo->is_valid ? {
                 photo_desc  => $photo->prop('description'),
                 photo_title => $photo->prop('title'),
                 photo_url   => $photo->image_url( 'size' => @photos > 1 ? 100 : 600 ),
@@ -1619,7 +1619,7 @@
     my $ljphoto_enabled = $remote->can_upload_photo();
 
     LJ::Widget::Fotki::Upload->render();
-       
+ 
     $out .= <<JS;
 <script type="text/javascript">
     window.ljphotoEnabled = $ljphoto_enabled;

Tags: gprochaev, livejournal, pm, wisest-owl
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