php-diff: PHP fix

This commit is contained in:
Thomas Gelf 2020-11-24 09:51:55 +01:00
parent 5080ae3433
commit 4dc69118d8

View File

@ -150,7 +150,7 @@ class Diff_Renderer_Html_Array extends Diff_Renderer_Abstract
{
$start = 0;
$limit = min(strlen($fromLine), strlen($toLine));
while($start < $limit && $fromLine{$start} == $toLine{$start}) {
while($start < $limit && $fromLine[$start] == $toLine[$start]) {
++$start;
}
$end = -1;