Commit 94b0ecaf authored by Nico Schallehn's avatar Nico Schallehn

Fehler bei Suche behoben

parent 1555f2a1
......@@ -75,7 +75,7 @@ class MediaDBViewerAPI{
$first = false;
}
if(isset($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']."%'
$Where .= (($first?"":" AND ").$Suche);
$first = false;
......
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