Stop scrutinizer from complaining here.

This commit is contained in:
jgen 2014-04-25 17:40:42 -04:00
parent c85630198f
commit 3e899710d7

View file

@ -137,6 +137,10 @@ class NumericScore extends Extension {
else if($event->page_matches("popular_by_year")){
$dte = array($totaldate, $year, "\\y\\e\\a\\r\=Y", "year");
}
else {
// this should never happen due to the fact that the page event is already matched against earlier.
throw new UnexpectedValueException("Error: Invalid page event.");
}
$sql .= " AND NOT numeric_score=0 ORDER BY numeric_score DESC LIMIT :limit OFFSET 0";
//filter images by score != 0 + date > limit to max images on one page > order from highest to lowest score