diff --git a/SourceGitweb/SourceGitweb.php b/SourceGitweb/SourceGitweb.php index 6eb3a70..687e8ab 100644 --- a/SourceGitweb/SourceGitweb.php +++ b/SourceGitweb/SourceGitweb.php @@ -301,8 +301,8 @@ $t_parents = array(); if( preg_match_all( '#parent]*>([a-f0-9]*)#', $t_gitweb_data, $t_matches ) ) { - foreach( $t_matches as $t_match ) { - $t_parents[] = $t_commit['parent'] = $t_match[1]; + foreach( $t_matches[1] as $t_match ) { + $t_parents[] = $t_commit['parent'] = $t_match; } }