From 23c4097fde2f4257057b5c1e86ada20f574eaff3 Mon Sep 17 00:00:00 2001 From: Emanuil Rusev Date: Mon, 15 Dec 2014 13:59:37 +0200 Subject: [PATCH] restore support for PHP 5.2 --- Parsedown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parsedown.php b/Parsedown.php index 86f1e80..15c5c9c 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -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]);