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; }