From e86ec32dd7a7d356a70df76f2a641f3d5e76d1af Mon Sep 17 00:00:00 2001 From: Taras Machyshyn Date: Wed, 31 Mar 2021 15:12:46 +0300 Subject: [PATCH] Hide permission warnings --- application/Espo/Core/Utils/File/Permission.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/Espo/Core/Utils/File/Permission.php b/application/Espo/Core/Utils/File/Permission.php index 679c9e0e06..e6eddf68a4 100644 --- a/application/Espo/Core/Utils/File/Permission.php +++ b/application/Espo/Core/Utils/File/Permission.php @@ -390,7 +390,7 @@ class Permission protected function chmodReal($filename, $mode) { try { - $result = chmod($filename, $mode); + $result = @chmod($filename, $mode); } catch (\Exception $e) { $result = false; } @@ -400,7 +400,7 @@ class Permission $this->chgrp($filename, $this->getDefaultGroup(true)); try { - $result = chmod($filename, $mode); + $result = @chmod($filename, $mode); } catch (\Exception $e) { throw new Error($e->getMessage()); } @@ -412,7 +412,7 @@ class Permission protected function chownReal($path, $user) { try { - $result = chown($path, $user); + $result = @chown($path, $user); } catch (\Exception $e) { throw new Error($e->getMessage()); } @@ -423,7 +423,7 @@ class Permission protected function chgrpReal($path, $group) { try { - $result = chgrp($path, $group); + $result = @chgrp($path, $group); } catch (\Exception $e) { throw new Error($e->getMessage()); }