Fix a notice about variable pass by reference

This commit is contained in:
Thomas Keller 2011-03-17 01:10:59 +01:00
parent baa88412b9
commit 19b35565a2

View File

@ -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();