33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-11-15 17:47:10 +00:00

Merge pull request #248 from richard67/4.0-dev-fix-php-notices-controller

Fix PHP notice in ResetController
This commit is contained in:
Hannes Papenberg 2019-11-09 13:04:35 +01:00 committed by GitHub
commit 872b4fabdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
{