Handle empty option lists gracefully.

This commit is contained in:
Thomas Keller 2011-12-27 03:50:11 +01:00
parent eac353f921
commit fb88c08e85

View File

@ -46,9 +46,6 @@ class IDF_Template_MarkdownForge extends Pluf_Template_Tag
if (!in_array($macro, $known_macros)) { if (!in_array($macro, $known_macros)) {
return $matches[0]; return $matches[0];
} }
if (empty($opts)) {
$opts = array();
}
$callbackName = 'callback'.ucfirst(strtolower($macro)).'Macro'; $callbackName = 'callback'.ucfirst(strtolower($macro)).'Macro';
return $this->callbackProjectlistMacro($opts); return $this->callbackProjectlistMacro($opts);
} }