From 6b90cee8518e74d12e821003dba0dc101dba29f7 Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 9 Apr 2019 11:11:01 +0300 Subject: [PATCH] fix opcache warning --- application/Espo/Core/Utils/File/Manager.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/Espo/Core/Utils/File/Manager.php b/application/Espo/Core/Utils/File/Manager.php index 33c8219d79..c71b377873 100644 --- a/application/Espo/Core/Utils/File/Manager.php +++ b/application/Espo/Core/Utils/File/Manager.php @@ -206,7 +206,7 @@ class Manager $res = (file_put_contents($fullPath, $data, $flags) !== FALSE); if ($res && function_exists('opcache_invalidate')) { - opcache_invalidate($fullPath); + @opcache_invalidate($fullPath); } return $res; @@ -467,7 +467,7 @@ class Manager if (file_exists($sourceFile) && is_file($sourceFile)) { $res &= copy($sourceFile, $destFile); if (function_exists('opcache_invalidate')) { - opcache_invalidate($destFile); + @opcache_invalidate($destFile); } } } @@ -562,7 +562,7 @@ class Manager if (file_exists($filePath) && is_file($filePath)) { if (function_exists('opcache_invalidate')) { - opcache_invalidate($filePath, true); + @opcache_invalidate($filePath, true); } $result &= unlink($filePath); }