summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorytetsuro <phper.0o0@gmail.com>2018-04-03 12:22:50 +0200
committerytetsuro <phper.0o0@gmail.com>2018-04-03 12:22:50 +0200
commit5e36bdcd352c24e6312ad81cadf2ddbf041d11cb (patch)
tree624a2a885289e19f8697d26beea8955e212fcb72
parentc243df3af851fe90cd272f3958f7eb7bf76173b1 (diff)
fix: It does not work properly when like is before
-rw-r--r--system/database/DB_query_builder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php
index 744c4970e..41148f63b 100644
--- a/system/database/DB_query_builder.php
+++ b/system/database/DB_query_builder.php
@@ -1042,7 +1042,7 @@ abstract class CI_DB_query_builder extends CI_DB_driver {
$v = "'{$v}'";
break;
case 'before':
- $v = "%'{$v}'";
+ $v = "'%{$v}'";
break;
case 'after':
$v = "'{$v}%'";