From: Tim Düsterhus Date: Mon, 23 Jun 2014 15:11:48 +0000 (+0200) Subject: Fix Diff's common start / end detection X-Git-Tag: 2.1.0_Alpha_1~633^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=96295d3a82426446a868214d0236b573718cb445;p=GitHub%2FWoltLab%2FWCF.git Fix Diff's common start / end detection --- 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); }