io_deleteFromFile: pass a string not null

This commit is contained in:
Andreas Gohr 2024-01-26 20:10:34 +01:00
parent 94fd57408c
commit 2fb31c4fed
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ function io_replaceInFile($file, $oldline, $newline, $regex = false, $maxlines =
*/
function io_deleteFromFile($file, $badline, $regex = false)
{
return io_replaceInFile($file, $badline, null, $regex, 0);
return io_replaceInFile($file, $badline, '', $regex, 0);
}
/**