Skip to content

Commit be8276b

Browse files
committed
[Fix] $styles null bug
1 parent a398b95 commit be8276b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Ajax/semantic/traits/SemanticHtmlCollectionsTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function htmlTable($identifier, $rowCount, $colCount){
3535
*/
3636
public function htmlMessage($identifier, $content="",$styles=NULL) {
3737
$msg= $this->addHtmlComponent(new HtmlMessage($identifier, $content));
38-
if(isset($msg))
38+
if(isset($msg) && $styles!==null)
3939
$msg->setStyle($styles);
4040
return $msg;
4141
}

0 commit comments

Comments
 (0)