From 47f84bcb557802cf2e389b5d7383beb4432845c5 Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Mon, 2 Feb 2009 21:47:50 +0100 Subject: [PATCH] Fixed in a dirty way, should be improved. --- src/IDF/Diff.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/IDF/Diff.php b/src/IDF/Diff.php index a088d4f..6dff0e9 100644 --- a/src/IDF/Diff.php +++ b/src/IDF/Diff.php @@ -256,10 +256,11 @@ class IDF_Diff } } if (!$exists) { + $orig = isset($orig_lines[$lc-1]) ? $orig_lines[$lc-1] : ''; $n_chunk[] = array( $lc, $chunk[0][1]-$chunk[0][0]+$lc, - $orig_lines[$lc-1] + $orig ); } }