Skip to content

Commit 496fb1e

Browse files
SharkyKZHLeithner
authored andcommitted
Fix pagination when uninstalling extensions (#25195)
1 parent a62756b commit 496fb1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

administrator/components/com_installer/models/extension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ protected function _getList($query, $limitstart = 0, $limit = 0)
117117
$total = count($result);
118118
$this->cache[$this->getStoreId('getTotal')] = $total;
119119

120-
if ($total < $limitstart)
120+
if ($total <= $limitstart)
121121
{
122122
$limitstart = 0;
123-
$this->setState('list.start', 0);
123+
$this->setState('list.limitstart', 0);
124124
}
125125

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

0 commit comments

Comments
 (0)