diff options
Diffstat (limited to 'system/database')
-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 c71a6aa3a..dcaeb5a9b 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -1269,7 +1269,7 @@ class CI_DB_driver { // Basically we remove everything to the right of the first space if (strpos($item, ' ') !== FALSE) { - $alias = strstr(' ', $item); + $alias = strstr($item, ' '); $item = substr($item, 0, - strlen($alias)); } else |