summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spiderr@bitweaver.org>2020-06-19 23:13:13 -0400
committerspiderr <spiderr@bitweaver.org>2020-06-19 23:13:13 -0400
commit37ee6ade4b3a0032d4829bd6a610890626509c03 (patch)
treee981774a62623c0cebfd795367032d3adadcb7c9
parentedc55a6661da0f0893813dc45c871118f5a886ee (diff)
downloadkernel-37ee6ade4b3a0032d4829bd6a610890626509c03.tar.gz
kernel-37ee6ade4b3a0032d4829bd6a610890626509c03.tar.bz2
kernel-37ee6ade4b3a0032d4829bd6a610890626509c03.zip
silence unlink
-rw-r--r--kernel_lib.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel_lib.php b/kernel_lib.php
index 304bcb1..896411b 100644
--- a/kernel_lib.php
+++ b/kernel_lib.php
@@ -480,7 +480,7 @@ function unlink_r( $pPath, $pFollowLinks = FALSE ) {
if( $dir = opendir( $pPath ) ) {
while( FALSE !== ( $entry = readdir( $dir ) ) ) {
if( is_file( "$pPath/$entry" ) || ( !$pFollowLinks && is_link( "$pPath/$entry" ) ) ) {
- unlink( "$pPath/$entry" );
+ @unlink( "$pPath/$entry" );
} elseif( is_dir( "$pPath/$entry" ) && $entry != '.' && $entry != '..' ) {
unlink_r( "$pPath/$entry" ) ;
}