Commit 7f780173 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 63b860d8
......@@ -68,7 +68,7 @@ class MediaDBViewerAPI{
$Where .= ($first?"":" AND ").'3d '.($GET_arr['3d']?"!=":"=").'""';
$first = false;
}
if(isset($GET_arr['GenreID']) AND !isset($GET_arr['Genre'])){
if(isset($GET_arr['GenreID'])){
$Query = 'SELECT group_concat(fg.imdbID) AS imdbIDs FROM FilmGenre AS fg JOIN Genre AS g ON fg.genreID = g.genreID WHERE g.genreID IN ('.$GET_arr['GenreID'].') ';
echo $Query;
$Genre = $this->DB_Objekt->query($Query);
......@@ -79,7 +79,7 @@ class MediaDBViewerAPI{
$Where .= ($first?"":" AND ").str_replace(",)", ")", 'imdbID in ('.$GenreArr["imdbIDs"].')');
$first = false;
}
if(!isset($GET_arr['GenreID']) AND isset($GET_arr['Genre'])){
if( isset($GET_arr['Genre'])){
$Query = 'SELECT group_concat(fg.imdbID) AS imdbIDs FROM FilmGenre AS fg JOIN Genre AS g ON fg.genreID = g.genreID WHERE g.Genre IN ('.$GET_arr['Genre'].') ';
echo $Query;
$Genre = $this->DB_Objekt->query($Query);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment