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

test

parent edefc12f
......@@ -207,16 +207,17 @@ class Media {
if (in_array($fsk2, array(0, 6, 12,16,18))){
$fsk = $fsk2;
$newData["fsk"] = $fsk2;
$fskbool = true;
}else{
echo $this->Console->error("keine fsk gefunden für imdbID ".$Film["imdbID"]."!").PHP_EOL;
$fsk = "";
$counter++;
}
}else {
}
$update ="";
$first = true;
foreach ($newData AS $key=> $value){
if(!($Film[$key] == $newData[$key]) ) {
if(!($Film[$key] == $newData[$key]) AND !($fskbool) ) {
$update .= " ".($first?"":",").$key." = '".$value."'";
......@@ -232,8 +233,6 @@ class Media {
}else {
echo "Nix zu ändern!".PHP_EOL;
}
}
......
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