From 96295d3a82426446a868214d0236b573718cb445 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 23 Jun 2014 17:11:48 +0200 Subject: [PATCH] Fix Diff's common start / end detection --- wcfsetup/install/files/lib/util/Diff.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/util/Diff.class.php b/wcfsetup/install/files/lib/util/Diff.class.php index a4d51a8c0b..f296fc64a4 100644 --- a/wcfsetup/install/files/lib/util/Diff.class.php +++ b/wcfsetup/install/files/lib/util/Diff.class.php @@ -88,7 +88,7 @@ class Diff { } // both arrays are the same - if ($offsetStart === $offsetEnd) { + if ($offsetStart === $this->sizeA && $offsetStart === $this->sizeB) { return \SplFixedArray::fromArray($this->a); } -- 2.20.1