diff options
author | Andrey Andreev <narf@devilix.net> | 2015-08-20 12:23:21 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-08-20 12:23:21 +0200 |
commit | be178a79382cae5079622396f8f9679a15e0f58b (patch) | |
tree | e993447affb9f36d037c275919e7c88dc70d2494 /system | |
parent | eb492589cb6ba0faaadadebe2a5cd333de80b6c4 (diff) |
Fix #4065
Diffstat (limited to 'system')
-rw-r--r-- | system/database/DB_driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index 34d3a5979..9c4d7e007 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -1760,7 +1760,7 @@ abstract class CI_DB_driver { } // Convert tabs or multiple spaces into single spaces - $item = preg_replace('/\s+/', ' ', $item); + $item = preg_replace('/\s+/', ' ', trim($item)); // If the item has an alias declaration we remove it and set it aside. // Note: strripos() is used in order to support spaces in table names |