summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Libraries/Helper.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Libraries/Helper.php b/app/Libraries/Helper.php
index b0ecdfd..d85d216 100644
--- a/app/Libraries/Helper.php
+++ b/app/Libraries/Helper.php
@@ -7,7 +7,9 @@ class Helper {
public static function escapeLike($string){
$search = array('%', '_');
$replace = array('\%', '\_');
- return str_replace($search, $replace, $string);
+ $string = str_replace($search, $replace, $string);
+ $string = explode(" ", $string);
+ return implode("%", $string);
}
public static function formatTimestamp($timestamp) {