Skip to content

Commit

Permalink
fix order
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Mar 5, 2019
1 parent fdef74f commit f9e7689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/NewsRelatedModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function newsListFetchItems($newsArchives, $blnFeatured, $limit, $offset,
break;

case 'order_related':
$arrOptions['order'] = 'FIELD('.implode(',', array_map('intval', $arrRelated)).')';
$arrOptions['order'] = "FIELD($t.id,".implode(',', array_map('intval', $arrRelated)).')';
break;

default:
Expand Down

0 comments on commit f9e7689

Please sign in to comment.