Skip to content

Commit

Permalink
php 5.2兼容性bug
Browse files Browse the repository at this point in the history
  • Loading branch information
joyqi committed Oct 11, 2014
1 parent c9e3442 commit a1fad00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion var/CommonMark/InlineParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,8 @@ protected function parseLink(CommonMark_Util_ArrayCollection $inlines)
) {
// make sure there's a space before the title:
if (preg_match('/^\\s/', $this->subject[$this->pos - 1])) {
$title = $this->parseLinkTitle() ? : '';
$title = $this->parseLinkTitle();
$title = $title ? $title : '';
} else {
$title = null;
}
Expand Down

0 comments on commit a1fad00

Please sign in to comment.