Skip to content

Commit ce9161c

Browse files
authored
[5.4] limitstart (joomla#45778)
Clean PHP deprecated: array_slice(): Passing null to parameter #2 ($offset) of type int is deprecated
1 parent 37612d3 commit ce9161c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

administrator/components/com_installer/src/Model/InstallerModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ protected function _getList($query, $limitstart = 0, $limit = 0)
126126
$this->setState('list.limitstart', 0);
127127
}
128128

129-
return \array_slice($result, $limitstart, $limit ?: null);
129+
return \array_slice($result, $limitstart ?: 0, $limit ?: null);
130130
}
131131

132132
// Process searching, ordering and pagination for regular database fields.

0 commit comments

Comments
 (0)