Skip to content

Commit

Permalink
Recreate array with new index keys
Browse files Browse the repository at this point in the history
  • Loading branch information
gudmdharalds committed Aug 19, 2020
1 parent 6593efb commit 44fd572
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions git-repo.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,14 @@ function( $line ) {
$results
);

/*
* Recreate array with
* new index keys.
*/
$results = array_values(
$results
);

if ( ! empty(
$results
) ) {
Expand Down

0 comments on commit 44fd572

Please sign in to comment.