Skip to content

Commit 9edcacd

Browse files
committed
Switch strstr() arguments
1 parent 0eebc80 commit 9edcacd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/database/DB_driver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ function _protect_identifiers($item, $prefix_single = FALSE, $protect_identifier
12691269
// Basically we remove everything to the right of the first space
12701270
if (strpos($item, ' ') !== FALSE)
12711271
{
1272-
$alias = strstr(' ', $item);
1272+
$alias = strstr($item, ' ');
12731273
$item = substr($item, 0, - strlen($alias));
12741274
}
12751275
else

0 commit comments

Comments
 (0)