From 380831c017b7d3af52438f93f98f40c4065f1877 Mon Sep 17 00:00:00 2001 From: Richard Fath Date: Sat, 19 Oct 2019 12:50:41 +0200 Subject: [PATCH] Fix PHP warning "failed to open stream..." --- .../components/com_patchtester/PatchTester/Model/PullModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/components/com_patchtester/PatchTester/Model/PullModel.php b/administrator/components/com_patchtester/PatchTester/Model/PullModel.php index 4848ca2..71dc999 100644 --- a/administrator/components/com_patchtester/PatchTester/Model/PullModel.php +++ b/administrator/components/com_patchtester/PatchTester/Model/PullModel.php @@ -248,7 +248,7 @@ class PullModel extends AbstractModel File::delete($zipPath); // Get files from deleted_logs - $deletedFiles = (file($delLogPath) ? file($delLogPath) : array()); + $deletedFiles = (file_exists($delLogPath) ? file($delLogPath) : array()); $deletedFiles = array_map('trim', $deletedFiles); if (file_exists($delLogPath))