io_deleteFromFile: pass a string not null
This commit is contained in:
parent
94fd57408c
commit
2fb31c4fed
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue