From 0b917f385e9fda24c5df0fc4ce054740e6f6928a Mon Sep 17 00:00:00 2001 From: James Date: Thu, 13 Sep 2012 17:05:40 -0400 Subject: [PATCH] CC-4430: Block: Please don't count the removed files in when calculating how many files meet the criteria - fixed --- airtime_mvc/application/models/Block.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/airtime_mvc/application/models/Block.php b/airtime_mvc/application/models/Block.php index 93ada2b34..c40785d57 100644 --- a/airtime_mvc/application/models/Block.php +++ b/airtime_mvc/application/models/Block.php @@ -1297,6 +1297,9 @@ SQL; $i++; } } + + // check if file exists + $qry->add("file_exists", "true", Criteria::EQUAL); $qry->addAscendingOrderByColumn('random()'); } // construct limit restriction