Commit 19d6a7c1 authored by Nico Schallehn's avatar Nico Schallehn

Spalten überprüfen sollte gehen

parent 43686eb2
......@@ -124,17 +124,24 @@ class MediaDBAPI{
//TODO überprüfen ob es die spalten auch wirklich gibt!!!
//Dafür den Array mit allein Spalten für die Reinfolge verwenden
/*$tempFilme= array();
$tempFilme= array();
foreach ($this->SpaltenFilme as $value) {
if(in_array($value, $this->SpaltenFil)){
array
$tempFilme = array_push($tempFilme, $value);
}
}*/
var_dump($this->SpaltenFil);
var_dump($this->SpaltenFilme);
$this->SpaltenFil = array_intersect_key($this->SpaltenFilme,$this->SpaltenFil);
$this->SpaltenEpi = array_intersect_key($this->SpaltenEpisoden,$this->SpaltenEpi);
}
$this->SpaltenFil = $tempFilme;
$tempEpisoden= array();
foreach ($this->SpaltenEpisoden as $value) {
if(in_array($value, $this->SpaltenEpi)){
$tempEpisoden = array_push($tempEpisoden, $value);
}
}
$this->SpaltenEpi = $tempEpisoden;
//$this->SpaltenFil = array_intersect_key($this->SpaltenFilme,$this->SpaltenFil);
//$this->SpaltenEpi = array_intersect_key($this->SpaltenEpisoden,$this->SpaltenEpi);
}
public function API_GetKeyRights($GET_arr, $POST_arr =""){
$array["SpaltenFilme"] = $this->SpaltenFil;
......
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