mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Instead of calling two functions before unlinking, just use @unlink().
This commit is contained in:
parent
cebc42e6fb
commit
9ff926a2dc
@ -288,9 +288,9 @@ function unlink_if_exists($fn) {
|
||||
$to_do = glob($fn);
|
||||
if(is_array($to_do)) {
|
||||
foreach($to_do as $filename)
|
||||
if (file_exists($filename) && !is_dir($filename)) unlink($filename);
|
||||
@unlink($filename);
|
||||
} else {
|
||||
if (file_exists($fn)) unlink($fn);
|
||||
@unlink($fn);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user