Skip to content

Commit

Permalink
Warning in the TV channels (issue #6231)
Browse files Browse the repository at this point in the history
  • Loading branch information
massiw committed Nov 18, 2015
1 parent 99def00 commit 6ff0048
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/src/Controller/TvChannelsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function move_channel() {
$filter = $this->getIPTVfilters();
}

$allChannels = $this->db->getAllChannels(array('where' => $filter));
$allChannels = $this->db->getAllChannels(array('select' => $this->getAllChannelsFields(), 'where' => $filter, 'order'=> array('number' => 'ASC')));

if (is_array($allChannels)) {
while (list($num, $row) = each($allChannels)) {
Expand All @@ -110,7 +110,6 @@ public function move_channel() {
unset($allChannels[0]);
}
}

$this->app['allChannels'] = $this->fillEmptyRows($allChannels);

return $this->app['twig']->render($this->getTemplateName(__METHOD__));
Expand Down Expand Up @@ -1775,6 +1774,7 @@ private function getAllGenres(){
private function getAllChannelsFields(){
return array(
'id' => 'itv.id as `id`',
'locked' => 'itv.locked as `locked`',
'number' => 'itv.number as `number`',
'logo' => 'itv.logo as `logo`',
'name' => 'itv.name as `name`',
Expand Down

0 comments on commit 6ff0048

Please sign in to comment.