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

[livejournal] r18011: LJSUP-7697. Error if no userheads was se...

Committer: gprochaev
LJSUP-7697. Error if no userheads was selected

U   trunk/htdocs/manage/profile/index.bml
Modified: trunk/htdocs/manage/profile/index.bml
===================================================================
--- trunk/htdocs/manage/profile/index.bml	2011-01-12 05:26:15 UTC (rev 18010)
+++ trunk/htdocs/manage/profile/index.bml	2011-01-12 07:27:32 UTC (rev 18011)
@@ -903,7 +903,7 @@
         if ($u->is_personal) {
             if ($POST{'uh_id'} eq 'default') {
                 $u->set_custom_usericon (undef);
-            } else {
+            } elsif ($POST{'uh_id'}) {
                 my $uh = LJ::UserHead->get_userhead ($POST{'uh_id'});
                 $u->set_custom_usericon ($uh->get_uh_img)
                     if $uh;

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