sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[ljcom] r11375: LJSUP-10937: Error occured on border(no ...

Committer: vtroitsky
LJSUP-10937: Error occured on border(no active selfpromo) condition fixed.
U   trunk/cgi-bin/LJ/Pay/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Pay/SelfPromo.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/SelfPromo.pm	2012-01-31 10:21:51 UTC (rev 11374)
+++ trunk/cgi-bin/LJ/Pay/SelfPromo.pm	2012-01-31 10:54:42 UTC (rev 11375)
@@ -718,7 +718,7 @@
         my $rows = $class->find_promos(         # perform select for class specific rows
             { 'require_active' => 1, 'return_rows' => 1 } );
 
-        unless (@$rows) {
+        unless ($rows && @$rows) {
             LJ::MemCache::set( $class->memcache_key, 0, 30 );
             return;
         }

Tags: ljcom, pm, sunnyman, vtroitsky
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