Fixed display

This commit is contained in:
nelsonlaquet 2013-09-01 02:58:27 -05:00
parent 1c2e19afec
commit 1a2cfb9104

View file

@ -73,17 +73,7 @@
}
public function getOwned() {
$query = Track::summary()->where('user_id', \Auth::user()->id);
if (Input::has('published')) {
$published = \Input::get('published');
if ($published)
$query->whereNotNull('published_at');
else
$query->whereNull('published_at');
}
$this->applyFilters($query);
$query = Track::summary()->where('user_id', \Auth::user()->id)->orderBy('created_at', 'desc');
$tracks = [];
foreach ($query->get() as $track)