From 6bd3b6152ab4e250bb850dd0cff88d1d3c14d27a Mon Sep 17 00:00:00 2001 From: Richard Fath Date: Sat, 9 Nov 2019 12:56:52 +0100 Subject: [PATCH] Fix PHP notice in ResetController --- .../PatchTester/Controller/ResetController.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/administrator/components/com_patchtester/PatchTester/Controller/ResetController.php b/administrator/components/com_patchtester/PatchTester/Controller/ResetController.php index 334f750..eab68d7 100644 --- a/administrator/components/com_patchtester/PatchTester/Controller/ResetController.php +++ b/administrator/components/com_patchtester/PatchTester/Controller/ResetController.php @@ -35,7 +35,8 @@ class ResetController extends AbstractController { try { - $hasErrors = false; + $hasErrors = false; + $revertErrored = false; $pullModel = new PullModel(null, Factory::getDbo()); $pullsModel = new PullsModel($this->context, null, Factory::getDbo()); @@ -46,8 +47,6 @@ class ResetController extends AbstractController if (count($appliedPatches['git'])) { - $revertErrored = false; - // Let's try to cleanly revert all applied patches foreach ($appliedPatches['git'] as $patch) { @@ -64,8 +63,6 @@ class ResetController extends AbstractController if (count($appliedPatches['ci'])) { - $revertErrored = false; - // Let's try to cleanly revert all applied patches with ci foreach ($appliedPatches['ci'] as $patch) {