Commit 2e6dd94f authored by Nico Schallehn's avatar Nico Schallehn

fix mysql_escape_string( summary)

parent 845900a4
......@@ -227,10 +227,10 @@ class Media {
if(isset($tmdb["movie_results"])){
if(isset($tmdb["movie_results"][0]["overview"])){
echo " done!".PHP_EOL;
$newData["summary"]=$tmdb["movie_results"][0]["overview"];
$newData["summary"]=mysql_escape_string($tmdb["movie_results"][0]["overview"]);
}else{
echo " fail2!".PHP_EOL;
$fehler .= $this->Console->error("keine summery gefunden für imdbID ".$Film["imdbID"]."!").PHP_EOL;
$fehler .= $this->Console->error("keine summary gefunden für imdbID ".$Film["imdbID"]."!").PHP_EOL;
}
$url2="https://api.themoviedb.org/3/movie/".$tmdb["movie_results"][0]["id"]."?api_key=".$tmdbKey."&language=de&append_to_response=trailers";
$tmdb2 = json_decode(file_get_contents($url2), true);
......
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