Skip to content

Commit 31fed0e

Browse files
committed
Update HtmlEmoji.php
1 parent 74ec229 commit 31fed0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Ajax/semantic/html/elements/HtmlEmoji.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ public function asLink($href=NULL,$target=NULL) {
6464
return $this->addToProperty("class", "link");
6565
}
6666

67-
public function addLabel($label, $before, $emoji) {
67+
public function addLabel($label, $before=false, $emoji=null) {
6868
if($before)
6969
$this->wrap($label);
7070
else
7171
$this->wrap("", $label);
72-
if(isset($emoji))
72+
if($emoji!=null)
7373
$this->setEmoji($emoji);
7474
return $this;
7575
}

0 commit comments

Comments
 (0)