File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
lib/private/App/AppStore/Fetcher Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public function get($allowUnstable = false) {
5050 $ entries = parent ::get (false );
5151 $ now = new DateTimeImmutable ();
5252
53- return array_filter ($ entries , function (array $ entry ) use ($ now , $ allowUnstable ) {
53+ $ entires = array_filter ($ entries , function (array $ entry ) use ($ now , $ allowUnstable ) {
5454 // Always remove expired entries
5555 if (isset ($ entry ['expiryDate ' ])) {
5656 try {
@@ -79,6 +79,9 @@ public function get($allowUnstable = false) {
7979 // Otherwise the entry is not time limited and should stay
8080 return true ;
8181 });
82+
83+ // Make sure the indices are sequential again after filtering
84+ return array_values ($ entries );
8285 }
8386
8487 public function getETag (): ?string {
You can’t perform that action at this time.
0 commit comments