File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -63,11 +63,13 @@ public function generate(
63
63
64
64
foreach ($ report ['files ' ] as $ filename => $ file ) {
65
65
$ blames = $ this ->getBlameContent ($ filename );
66
-
67
66
foreach ($ file ['messages ' ] as $ line => $ lineErrors ) {
68
- $ author = $ this ->getAuthor ($ blames [($ line - 1 )]);
69
- if ($ author === false ) {
70
- continue ;
67
+ $ author = 'Unknown ' ;
68
+ if (isset ($ blames [($ line - 1 )]) === true ) {
69
+ $ blameAuthor = $ this ->getAuthor ($ blames [($ line - 1 )]);
70
+ if ($ blameAuthor !== false ) {
71
+ $ author = $ blameAuthor ;
72
+ }
71
73
}
72
74
73
75
if (isset ($ authors [$ author ]) === false ) {
@@ -104,7 +106,7 @@ public function generate(
104
106
foreach ($ blames as $ line ) {
105
107
$ author = $ this ->getAuthor ($ line );
106
108
if (false === $ author ) {
107
- continue ;
109
+ $ author = ' Unknown ' ;
108
110
}
109
111
110
112
if (isset ($ authors [$ author ]) === false ) {
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
42
42
- Fixed bug #20097 : CLI.php throws error in php 5.2
43
43
- Fixed bug #20100 : incorrect Function mysql() has been deprecated report
44
44
- Fixed bug #20123 : PSR2 complains about an empty second statement in for-loop
45
+ - Fixed bug #20131 : PHP errors in svnblame report, if there are files not under version control
45
46
</notes >
46
47
<contents >
47
48
<dir name =" /" >
You can’t perform that action at this time.
0 commit comments