Skip to content

Commit

Permalink
Placed back error catch on store inside negative if
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter van Westen committed Mar 3, 2015
1 parent 67a8192 commit 62c76c4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions administrator/components/com_admin/script.php
Expand Up @@ -1330,15 +1330,13 @@ public function updateAssets()
$asset->title = $component;
$asset->setLocation(1, 'last-child');

if ($asset->store())
if (!$asset->store())
{
continue;
}
// Install failed, roll back changes
$this->parent->abort(JText::sprintf('JLIB_INSTALLER_ABORT_COMP_INSTALL_ROLLBACK', $asset->stderr(true)));

// Install failed, roll back changes
$this->parent->abort(JText::sprintf('JLIB_INSTALLER_ABORT_COMP_INSTALL_ROLLBACK', $asset->stderr(true)));

return false;
return false;
}
}

return true;
Expand Down

0 comments on commit 62c76c4

Please sign in to comment.