We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cb3f7c commit cb0d078Copy full SHA for cb0d078
1 file changed
lib/Diff/Renderer/Html/Array.php
@@ -190,9 +190,14 @@ protected function formatLines($lines)
190
*/
191
private function fixSpaces(array $matches)
192
{
193
- $spaces = $matches[1];
194
- $count = strlen($spaces);
195
- if($count == 0) {
+ $count = 0;
+
+ if (count($matches) > 1) {
196
+ $spaces = $matches[1];
197
+ $count = strlen($spaces);
198
+ }
199
200
+ if ($count == 0) {
201
return '';
202
}
203
0 commit comments