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:
commit
872b4fabdd
@ -36,6 +36,7 @@ class ResetController extends AbstractController
|
||||
try
|
||||
{
|
||||
$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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user