limit x,y isn't standard SQL; use limit x offset y
This commit is contained in:
parent
c30cb55504
commit
ab9b4e9123
@ -162,7 +162,7 @@ class NumericScore implements Extension {
|
||||
}
|
||||
$sql .=
|
||||
"ORDER BY numeric_score DESC
|
||||
LIMIT 0 , ".$t_images;
|
||||
LIMIT 0 OFFSET ".$t_images;
|
||||
|
||||
//filter images by year/score != 0 > limit to max images on one page > order from highest to lowest score
|
||||
$result = $database->get_all($sql);
|
||||
|
Loading…
x
Reference in New Issue
Block a user