From bdcb2645fb46b39e89be97604f3eeadae452eb7f Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sat, 13 Feb 2021 05:07:51 +0000 Subject: [PATCH] prefixed chmod and rmdir with @ in coderepomodel.php --- codepot/src/codepot/models/coderepomodel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codepot/src/codepot/models/coderepomodel.php b/codepot/src/codepot/models/coderepomodel.php index fa0dc9b6..76806d53 100644 --- a/codepot/src/codepot/models/coderepomodel.php +++ b/codepot/src/codepot/models/coderepomodel.php @@ -44,12 +44,12 @@ class CodeRepoModel extends Model if ($item == '.' || $item == '..') continue; if (self::_deleteDirectory($dir . "/" . $item) === FALSE) { - chmod($dir . "/" . $item, 0777); + @chmod($dir . "/" . $item, 0777); if (self::_deleteDirectory($dir . "/" . $item) === FALSE) return FALSE; }; } - return rmdir($dir); + return @rmdir($dir); } function deleteDirectory($dir)