summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/mysql/mysql_driver.php
diff options
context:
space:
mode:
authorMancy <abdullah.mancy@gmail.com>2011-12-20 10:45:58 +0100
committerMancy <abdullah.mancy@gmail.com>2011-12-20 10:45:58 +0100
commit205d02936cf76f9b430129d9b704c182933cfee4 (patch)
treea6bb5fa11a4d45bcf6783a35ad4269793bcb2900 /system/database/drivers/mysql/mysql_driver.php
parentc4caf5a181344e48fc6740f1383dd302f5b604d2 (diff)
#798: following current codeigniter code standards
Diffstat (limited to 'system/database/drivers/mysql/mysql_driver.php')
-rw-r--r--system/database/drivers/mysql/mysql_driver.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/system/database/drivers/mysql/mysql_driver.php b/system/database/drivers/mysql/mysql_driver.php
index 7952312ab..6ded6e531 100644
--- a/system/database/drivers/mysql/mysql_driver.php
+++ b/system/database/drivers/mysql/mysql_driver.php
@@ -621,12 +621,13 @@ class CI_DB_mysql_driver extends CI_DB {
$sql .= ($where != '' AND count($where) >=1) ? " WHERE ".implode(" ", $where) : '';
- if (count($like) > 0) {
+ if (count($like) > 0)
+ {
$sql .= ($where == '' AND count($where) <1) ? " WHERE " : ' AND ';
- foreach ($like as $st_like) {
-
- $sql .= " " . $st_like;
-
+
+ foreach ($like as $st_like)
+ {
+ $sql .= " " . $st_like;
}
}