From 44fd5722d175baff8f6e1b7e78aeef4239de8ac7 Mon Sep 17 00:00:00 2001 From: Gudmundur Haraldsson Date: Wed, 19 Aug 2020 22:46:59 +0000 Subject: [PATCH] Recreate array with new index keys --- git-repo.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/git-repo.php b/git-repo.php index 6acaf06ce..18e484be5 100644 --- a/git-repo.php +++ b/git-repo.php @@ -166,6 +166,14 @@ function( $line ) { $results ); + /* + * Recreate array with + * new index keys. + */ + $results = array_values( + $results + ); + if ( ! empty( $results ) ) {