Skip to content

Commit 2ce21c4

Browse files
committed
Merge pull request #7 from caxy/fix-empty_special_case_tags
Fix error caused when passing empty array into setSpecialCaseTags
2 parents 36fe885 + 5e64969 commit 2ce21c4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/Caxy/HtmlDiff/HtmlDiff.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ public function removeSpecialCaseChar($char)
6767

6868
public function setSpecialCaseTags(array $tags = array())
6969
{
70-
if (!empty($tags)) {
71-
$this->specialCaseTags = $tags;
72-
}
70+
$this->specialCaseTags = $tags;
7371

7472
foreach ($this->specialCaseTags as $tag) {
7573
$this->addSpecialCaseTag($tag);

0 commit comments

Comments
 (0)