diff options
Diffstat (limited to 'includes/diff.php')
| -rw-r--r-- | includes/diff.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/diff.php b/includes/diff.php index 8b57d32..bcda57f 100644 --- a/includes/diff.php +++ b/includes/diff.php @@ -190,8 +190,11 @@ class _WikiDiffEngine $x1 = $xoff + (int)(($numer + ($xlim-$xoff)*$chunk) / $nchunks); for ( ; $x < $x1; $x++) { - $matches = $ymatches[$flip ? $this->yv[$x] : $this->xv[$x]]; - if (!$matches) + $index = ($flip ? $this->yv[$x] : $this->xv[$x]); + if( !empty( $ymatches[$index] ) ) { + $matches = $ymatches[$index]; + } + if (empty($matches)) continue; reset($matches); while (list ($junk, $y) = each($matches)) |
