Skip to content

Commit

Permalink
Fix pagination when uninstalling extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkyKZ committed Jun 13, 2019
1 parent c5ff9e5 commit 5626fa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions administrator/components/com_installer/models/extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ protected function _getList($query, $limitstart = 0, $limit = 0)
$total = count($result);
$this->cache[$this->getStoreId('getTotal')] = $total;

if ($total < $limitstart)
if ($total <= $limitstart)
{
$limitstart = 0;
$this->setState('list.start', 0);
$this->setState('list.limitstart', 0);
}

return array_slice($result, $limitstart, $limit ?: null);
Expand Down

0 comments on commit 5626fa7

Please sign in to comment.