Skip to content
Permalink
Browse files

fixed getPlaylists to disambiguate playlist and airname ids

  • Loading branch information...
RocketMan committed Aug 3, 2019
1 parent 1f9a95f commit 2d9764a436e0055d74c5c0f51f9090f47d958865
Showing with 1 addition and 1 deletion.
  1. +1 −1 engine/impl/Playlist.php
@@ -64,7 +64,7 @@ public function getPlaylists($onlyPublished=0, $withAirname=0,
$showDate="", $airname="", $user="", $desc=1) {
if($withAirname)
$query = "SELECT l.id, l.showdate, l.showtime, l.description, " .
"a.id, a.airname FROM lists l LEFT JOIN airnames a " .
"a.id airid, a.airname FROM lists l LEFT JOIN airnames a " .
"ON l.airname = a.id ";
else
$query = "SELECT id, showdate, showtime, description FROM lists l ";

0 comments on commit 2d9764a

Please sign in to comment.
You can’t perform that action at this time.