Skip to content

Commit

Permalink
using mb_stripos to handle string "NULL" case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jul 12, 2020
1 parent cbc8b2c commit 76c7e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Database/BaseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ public function select($select = '*', bool $escape = null)
* This prevents NULL being escaped
* @see https://github.com/codeigniter4/CodeIgniter4/issues/1169
*/
if (mb_strpos(trim($val), 'NULL') === 0)
if (mb_stripos(trim($val), 'NULL') === 0)
{
$escape = false;
}
Expand Down

0 comments on commit 76c7e16

Please sign in to comment.