CC-4430: Block: Please don't count the removed files in when calculating how many files meet the criteria

- fixed
This commit is contained in:
James 2012-09-13 17:05:40 -04:00
parent 14db5053b1
commit 0b917f385e
1 changed files with 3 additions and 0 deletions

View File

@ -1297,6 +1297,9 @@ SQL;
$i++;
}
}
// check if file exists
$qry->add("file_exists", "true", Criteria::EQUAL);
$qry->addAscendingOrderByColumn('random()');
}
// construct limit restriction