Commit 4009f142 authored by Nico Schallehn's avatar Nico Schallehn

fehler im Sufu behoben (kam erst in dieser version)

parent 587aeea0
...@@ -186,10 +186,10 @@ class MediaDBAPI{ ...@@ -186,10 +186,10 @@ class MediaDBAPI{
if(isset($GET_arr['Suche'])){ if(isset($GET_arr['Suche'])){
$SucheWort = $GET_arr['Suche']; $SucheWort = $GET_arr['Suche'];
if(in_array("titelOriginal", $this->SpaltenFilme)){ if(in_array("titelOriginal", $this->SpaltenFilme)){
$SucheAdd .=" OR `titelOriginal` = '".$GET_arr['Suche']."'"; $SucheAdd .=" OR `titelOriginal` LIKE '%".$GET_arr['Suche']."%'";
} }
if(in_array("titelDeutsch", $this->SpaltenFilme)){ if(in_array("titelDeutsch", $this->SpaltenFilme)){
$SucheAdd .=" OR `titelDeutsch` = '".$GET_arr['Suche']."'"; $SucheAdd .=" OR `titelDeutsch` LIKE '%".$GET_arr['Suche']."%'";
} }
$Suche = " (`name` LIKE '%".$SucheWort."%' OR `md5` LIKE '%".$SucheWort."%' OR `comment` LIKE '%".$SucheWort."%' ".$SucheAdd.")"; $Suche = " (`name` LIKE '%".$SucheWort."%' OR `md5` LIKE '%".$SucheWort."%' OR `comment` LIKE '%".$SucheWort."%' ".$SucheAdd.")";
$this->DebugOut($Suche); $this->DebugOut($Suche);
......
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