From 9edcacd22ada577c88d82d911b2157e8f0f6a928 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Wed, 13 Jun 2012 21:59:33 +0300 Subject: Switch strstr() arguments --- system/database/DB_driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/database/DB_driver.php') 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 -- cgit v1.2.3-24-g4f1b