Commit 5888f6cb authored by Nico Schallehn's avatar Nico Schallehn

test

parent c80ae82b
...@@ -293,7 +293,7 @@ class MediaDBAPI{ ...@@ -293,7 +293,7 @@ class MediaDBAPI{
$Genre = $this->query($Query); $Genre = $this->query($Query);
if($this->DB_Objekt->error != ""){ return $this->error(1005, $this->DB_Objekt->error);} if($this->DB_Objekt->error != ""){ return $this->error(1005, $this->DB_Objekt->error);}
$GenreArr = $Genre->fetch_array(); $GenreArr = $Genre->fetch_array();
$tempArray["Genre"] = explode(",", utf8_encode($GenreArr["Genre"])); $tempArray["Genre"] = explode(",", ($GenreArr["Genre"]));
} }
if($ListSchauspieler){ if($ListSchauspieler){
$Query = 'SELECT group_concat(s.name ORDER BY s.name) AS Schauspieler '. $Query = 'SELECT group_concat(s.name ORDER BY s.name) AS Schauspieler '.
...@@ -301,7 +301,7 @@ class MediaDBAPI{ ...@@ -301,7 +301,7 @@ class MediaDBAPI{
$Schauspieler = $this->query($Query); $Schauspieler = $this->query($Query);
if($this->DB_Objekt->error != ""){ return $this->error(1005, $this->DB_Objekt->error);} if($this->DB_Objekt->error != ""){ return $this->error(1005, $this->DB_Objekt->error);}
$SchauspielerArr = $Schauspieler->fetch_array(); $SchauspielerArr = $Schauspieler->fetch_array();
$tempArray["Schauspieler"] = explode(",", utf8_encode($SchauspielerArr["Schauspieler"])); $tempArray["Schauspieler"] = explode(",", ($SchauspielerArr["Schauspieler"]));
} }
if ($Statistik == true) { if ($Statistik == true) {
if (($GET_arr['Tabelle'] == "Staffeln")) { if (($GET_arr['Tabelle'] == "Staffeln")) {
...@@ -371,7 +371,7 @@ class MediaDBAPI{ ...@@ -371,7 +371,7 @@ class MediaDBAPI{
$result = $this->query($Query); $result = $this->query($Query);
if($this->DB_Objekt->error != ""){ return $this->error(1005, $this->DB_Objekt->error);} if($this->DB_Objekt->error != ""){ return $this->error(1005, $this->DB_Objekt->error);}
return $this->error(1008, utf8_encode($Query)); return $this->error(1008, ($Query)); //utf8_encode
} }
}/* }/*
else if(isset($POST_arr["season_nr"]) AND ($GET_arr["Tabelle"] == "Staffeln") ){ else if(isset($POST_arr["season_nr"]) AND ($GET_arr["Tabelle"] == "Staffeln") ){
...@@ -430,7 +430,7 @@ class MediaDBAPI{ ...@@ -430,7 +430,7 @@ class MediaDBAPI{
$tempArray = array(); $tempArray = array();
foreach ($finfo as $val) { foreach ($finfo as $val) {
if(!(($val->name == "imdbID") AND $NoimdbID)){ if(!(($val->name == "imdbID") AND $NoimdbID)){
$tempArray[$val->name] = utf8_encode($entry[$val->name]); $tempArray[$val->name] = ($entry[$val->name]); //utf8_encode
} }
} }
array_push($entryArray,$tempArray); array_push($entryArray,$tempArray);
...@@ -469,7 +469,7 @@ class MediaDBAPI{ ...@@ -469,7 +469,7 @@ class MediaDBAPI{
//$this->Statistik["QueryCounter"]++; //$this->Statistik["QueryCounter"]++;
$ret = $this->DB_Objekt->query($Query); $ret = $this->DB_Objekt->query($Query);
$this->Querys[$this->Statistik["QueryCounter"]++]= array( "Query" => utf8_encode($Query), $this->Querys[$this->Statistik["QueryCounter"]++]= array( "Query" => ($Query),
"MySQLnum_rows" => $ret->num_rows, "MySQLnum_rows" => $ret->num_rows,
"MySQLfield_count" => $this->DB_Objekt->field_count , "MySQLfield_count" => $this->DB_Objekt->field_count ,
"MySQLerror" => $this->DB_Objekt->error ); "MySQLerror" => $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