Permalink
Browse files

Switch strstr() arguments

  • Loading branch information...
1 parent 0eebc80 commit 9edcacd22ada577c88d82d911b2157e8f0f6a928 @narfbg narfbg committed Jun 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 system/database/DB_driver.php
@@ -1269,7 +1269,7 @@ function _protect_identifiers($item, $prefix_single = FALSE, $protect_identifier
// 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

0 comments on commit 9edcacd

Please sign in to comment.