summarylogtreecommitdiffstats
path: root/002-mythweb.patch
blob: bf3babfac4dd8fcaa013a77bfc66e5ee62741e9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff --git a/modules/tv/search.php b/modules/tv/search.php
index 468b3422..3fe893c7 100644
--- a/modules/tv/search.php
+++ b/modules/tv/search.php
@@ -344,7 +344,7 @@
                 case 'Recorded':
                 case 'NeverRecord':
                     unset($Results[$key]);
-                    continue;
+                    break;
             }
         }
     }
@@ -358,7 +358,7 @@
                 case 'EarlierShowing':
                 case 'LaterShowing':
                     unset($Results[$key]);
-                    continue;
+                    break;
             }
         }
     }
@@ -457,11 +457,11 @@
             case 'both':
                 return $db->escape($value);
             case 'start':
-                return $db->escape(preg_replace('/[\\s-_]+/', '%', $value).'%');
+                return $db->escape(preg_replace('/[\\s_-]+/', '%', $value).'%');
             case 'end':
-                return $db->escape('%'.preg_replace('/[\\s-_]+/', '%', $value));
+                return $db->escape('%'.preg_replace('/[\\s_-]+/', '%', $value));
             default:
-                return $db->escape('%'.preg_replace('/[\\s-_]+/', '%', $value).'%');
+                return $db->escape('%'.preg_replace('/[\\s_-]+/', '%', $value).'%');
         }
     }