From 19b35565a282f79bc17779586ea69cac5fcca4e1 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Thu, 17 Mar 2011 01:10:59 +0100 Subject: [PATCH] Fix a notice about variable pass by reference --- 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 635afe5..9d972ed 100644 --- a/src/IDF/Diff.php +++ b/src/IDF/Diff.php @@ -73,7 +73,8 @@ class IDF_Diff $current_file = $m[1]; } if ($this->path_strip_level > 0) { - $current_file = array_pop(explode('/', $current_file, $this->path_strip_level+1)); + $fileparts = explode('/', $current_file, $this->path_strip_level+1); + $current_file = array_pop($fileparts); } $current_chunk = 0; $files[$current_file] = array();