rashid2538 / php-htmldiff

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML.
GNU General Public License v2.0
69 stars 48 forks source link

Undefined offset error #10

Closed BenMorel closed 10 years ago

BenMorel commented 10 years ago

The following code:

$diff = new HtmlDiff(
    'This is a demonstration restaurant.',
    'This is a demonstration restaurant'
);
$diff->build();

Triggers the following error:

Undefined offset: 0 in HtmlDiff.php on line 269

BenMorel commented 10 years ago

@rashid2538 Did you have a chance to have a look at this issue?

gondo commented 10 years ago

11

BenMorel commented 10 years ago

Thanks, this works for me now!