Commit 11e082d0 authored by Nico Schallehn's avatar Nico Schallehn

Work a Round für Android 5 Geräte und SuchFunktion

parent ee23530e
...@@ -102,6 +102,14 @@ class MediaDBAPI{ ...@@ -102,6 +102,14 @@ class MediaDBAPI{
$first = false; $first = false;
} }
if(isset($GET_arr['Suche'])){ if(isset($GET_arr['Suche'])){
/* Work a round für Android 5 Geräte*/
$GET_arr['Suche'] = str_replace("\u00e4", "ä", $GET_arr['Suche']);
$GET_arr['Suche'] = str_replace("\u00f6", "ö", $GET_arr['Suche']);
$GET_arr['Suche'] = str_replace("\u00fc", "ü", $GET_arr['Suche']);
$GET_arr['Suche'] = str_replace("\u00c4", "Ä", $GET_arr['Suche']);
$GET_arr['Suche'] = str_replace("\u00d6", "Ö", $GET_arr['Suche']);
$GET_arr['Suche'] = str_replace("\u00dc", "Ü", $GET_arr['Suche']);
$Suche = " (`name` LIKE '%".$GET_arr['Suche']."%' OR `md5` LIKE '%".$GET_arr['Suche']."%' OR `comment` LIKE '%".$GET_arr['Suche']."%')"; $Suche = " (`name` LIKE '%".$GET_arr['Suche']."%' OR `md5` LIKE '%".$GET_arr['Suche']."%' OR `comment` LIKE '%".$GET_arr['Suche']."%')";
//OR `year` = '".$GET_arr['Suche']."' OR `resolution` LIKE '%".$GET_arr['Suche']."%' //OR `year` = '".$GET_arr['Suche']."' OR `resolution` LIKE '%".$GET_arr['Suche']."%'
$Where .= (($first?"":" AND ").$Suche); $Where .= (($first?"":" AND ").$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