Fix Diff's common start / end detection
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 23 Jun 2014 15:11:48 +0000 (17:11 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 2 Jul 2014 16:27:45 +0000 (18:27 +0200)
wcfsetup/install/files/lib/util/Diff.class.php

index a4d51a8c0b85172a3e506755ef01616cfd92bcbd..f296fc64a400438890e496ffb3f9bf188c46d226 100644 (file)
@@ -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);
                }