restore support for PHP 5.2

This commit is contained in:
Emanuil Rusev 2014-12-15 13:59:37 +02:00
parent 05e87566a9
commit 23c4097fde
1 changed files with 1 additions and 1 deletions

View File

@ -1370,7 +1370,7 @@ class Parsedown
{
if (preg_match('/^\s*\[(.*?)\]/', $remainder, $matches))
{
$definition = $matches[1] ?: $Element['text'];
$definition = $matches[1] ? $matches[1] : $Element['text'];
$definition = strtolower($definition);
$extent += strlen($matches[0]);