Commit 095a4d56 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 7c04e753
......@@ -80,7 +80,7 @@ class MediaDBViewerAPI{
$first = false;
}
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.gername IN ('.$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.gername IN ("'.str_replace(",", '","', $GET_arr['Genre']).'") ';
echo $Query;
$Genre = $this->DB_Objekt->query($Query);
if($this->DB_Objekt->error != ""){ return $this->error(1005, $this->DB_Objekt->error);}
......
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