Commit 3a87dad8 authored by Nico Schallehn's avatar Nico Schallehn

debug

parent bdc28fd6
......@@ -77,7 +77,7 @@ class MediaDBViewerAPI{
$GenreArr = $Genre->fetch_array();
//echo $GenreArr["imdbIDs"];
$Where .= ($first?"":" AND ").str_replace(",)", ")", 'imdbID in ('.$GenreArr["imdbIDs"].')');
$Where .= (strlen($GenreArr["imdbIDs"])>0?($first?"":" AND ").str_replace(",)", ")", 'imdbID in ('.$GenreArr["imdbIDs"].')'): ($first?" 0 ":""));
$first = false;
}
if( isset($GET_arr['Genre'])){
......@@ -103,7 +103,7 @@ class MediaDBViewerAPI{
$SchauspielerArr = $Schauspieler->fetch_array();
//echo $GenreArr["imdbIDs"];
$Where .= ($first?"":" AND ").str_replace(",)", ")", 'imdbID in ('.$SchauspielerArr["imdbIDs"].')');
$Where .= (strlen($SchauspielerArr["imdbIDs"])>0?($first?"":" AND ").str_replace(",)", ")", 'imdbID in ('.$SchauspielerArr["imdbIDs"].')'): ($first?" 0 ":""));
$first = false;
}
if( isset($GET_arr['Schauspieler'])){
......
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