summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-13 20:59:33 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-13 20:59:33 +0200
commit9edcacd22ada577c88d82d911b2157e8f0f6a928 (patch)
tree2756038bf4d8b44da3244a58907979a53240d87a
parent0eebc808cb298cdc6cd81be93de306a44c523e75 (diff)
Switch strstr() arguments
-rw-r--r--system/database/DB_driver.php2
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