Commit ba41ca2a authored by Steve Müller's avatar Steve Müller

fix CS

parent 292fb2d9
......@@ -546,7 +546,7 @@ class SqlitePlatform extends AbstractPlatform
// SQL's LOCATE function works on 1-based positions, while PHP's strpos works on 0-based positions.
// So we have to make them compatible if an offset is given.
if ($offset > 0) {
$offset--;
$offset -= 1;
}
$pos = strpos($str, $substr, $offset);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment