Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[ljcom] r11085: LJSUP-9771: not possible to buy extra st...

Committer: anazarov
LJSUP-9771: not possible to buy extra storage space add-on
U   trunk/htdocs/admin/accounts/acctedit.bml
Modified: trunk/htdocs/admin/accounts/acctedit.bml
===================================================================
--- trunk/htdocs/admin/accounts/acctedit.bml	2011-10-12 12:37:17 UTC (rev 11084)
+++ trunk/htdocs/admin/accounts/acctedit.bml	2011-10-12 12:44:47 UTC (rev 11085)
@@ -466,8 +466,7 @@
         my $has_cap = $u->{'caps'} & 1 << $bit || 0;
         my $name = $ML{$bitem->{'name'}};
         $name = "<b>$name</b>" if $has_cap;
-        $bit ||= '&nbsp;';
-        $ret .= "<tr><td align='middle'>$bit</td><td><label for='cap_${bit}_set'>$name</label></td>";
+        $ret .= "<tr><td align='middle'>". (defined $bit? $bit : '&nbsp;') ."</td><td><label for='cap_${bit}_set'>$name</label></td>";
 
         unless ($itemname =~ /^userpic/) {
             $ret .= "<td>";

Tags: anazarov, bml, ljcom, nfokz
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