Skip to content

Commit

Permalink
Fix typos in InstallerControllerUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
joomdonation authored Apr 12, 2018
1 parent b5b9d49 commit 83f10b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions administrator/components/com_installer/controllers/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function update()
// Get the minimum stability.
$component = JComponentHelper::getComponent('com_installer');
$params = $component->params;
$minimum_stability = $params->get('minimum_stability', JUpdater::STABILITY_STABLE, 'int');
$minimum_stability = (int) $params->get('minimum_stability', JUpdater::STABILITY_STABLE);

$model->update($uid, $minimum_stability);

Expand Down Expand Up @@ -85,7 +85,7 @@ public function find()
$cache_timeout = 3600 * $cache_timeout;

// Get the minimum stability.
$minimum_stability = $params->get('minimum_stability', JUpdater::STABILITY_STABLE, 'int');
$minimum_stability = (int) $params->get('minimum_stability', JUpdater::STABILITY_STABLE);

// Find updates.
/** @var InstallerModelUpdate $model */
Expand Down Expand Up @@ -162,7 +162,7 @@ public function ajax()

if ($minimum_stability < 0)
{
$minimum_stability = $params->get('minimum_stability', JUpdater::STABILITY_STABLE, 'int');
$minimum_stability = (int) $params->get('minimum_stability', JUpdater::STABILITY_STABLE);
}

/** @var InstallerModelUpdate $model */
Expand Down

0 comments on commit 83f10b9

Please sign in to comment.