holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r11497: LJSUP-11099: LJ Shop. Change LJ Tokens m...

Committer: akanashin
LJSUP-11099: LJ Shop. Change LJ Tokens mechanics
U   trunk/cgi-bin/LJ/Widget/Shop/View/Wallet.pm
Modified: trunk/cgi-bin/LJ/Widget/Shop/View/Wallet.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/View/Wallet.pm	2012-02-20 15:29:26 UTC (rev 11496)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/Wallet.pm	2012-02-21 07:41:35 UTC (rev 11497)
@@ -192,8 +192,10 @@
     if ($act eq 'buy') {
         my $qty = LJ::Request->post_param('buy_select');
 
-    unless ($LJ::DISABLED{ljtokens_slider} && $qty =~ /^(?:500|1000|3000)$/) {
-        $self->ml_error('error.invalidform');
+    unless ($LJ::DISABLED{ljtokens_slider}) {
+        if ($qty !~ /^(?:500|1000|3000)$/) {
+             $self->ml_error('error.invalidform');
+         }
     }
 
         my $it;

Tags: akanashin, holyandrew, ljcom, 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