mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
Fix for in progress ads
This commit is contained in:
parent
37b1bb6f0e
commit
e6dd75b703
@ -40,6 +40,7 @@ class AdvCriteria extends EntryCriteria
|
|||||||
$latest_advs = AdvModel::query()
|
$latest_advs = AdvModel::query()
|
||||||
->whereDate('finish_at', '>=', date("Y-m-d H:i:s"))
|
->whereDate('finish_at', '>=', date("Y-m-d H:i:s"))
|
||||||
->where('status', '=', 'approved')
|
->where('status', '=', 'approved')
|
||||||
|
->where('slug','!=','')
|
||||||
->orderBy('publish_at', 'desc')
|
->orderBy('publish_at', 'desc')
|
||||||
->paginate($this->settings->value('visiosoft.theme.default::s-type-latest-limit'));
|
->paginate($this->settings->value('visiosoft.theme.default::s-type-latest-limit'));
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user