diff options
| author | modela bitweaver <spiderr@bitweaver.org> | 2021-02-01 22:44:01 -0500 |
|---|---|---|
| committer | modela bitweaver <spiderr@bitweaver.org> | 2021-02-01 22:44:01 -0500 |
| commit | 8d4e05bedef4b77b10d75a8b2534dad99f234ba9 (patch) | |
| tree | ab666a46a5e7928d0443fbad5e7cd2e38a61e7ce | |
| parent | b7f5e4f2b295062f1a1bd64dd118577ca0a58214 (diff) | |
| download | util-8d4e05bedef4b77b10d75a8b2534dad99f234ba9.tar.gz util-8d4e05bedef4b77b10d75a8b2534dad99f234ba9.tar.bz2 util-8d4e05bedef4b77b10d75a8b2534dad99f234ba9.zip | |
index check in wiki diff
| -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)) |
