Commit d4143529 authored by Dries's avatar Dries

- Patch #905068 by Richard Eriksson: tips callback that returns nothing leads to empty list item.

parent fbf64a08
......@@ -964,7 +964,9 @@ function _filter_tips($format_id, $long = FALSE) {
foreach ($filters as $name => $filter) {
if ($filter->status && isset($filter_info[$name]['tips callback']) && function_exists($filter_info[$name]['tips callback'])) {
$tip = $filter_info[$name]['tips callback']($filter, $format, $long);
$tips[$format->name][$name] = array('tip' => $tip, 'id' => $name);
if (isset($tip)) {
$tips[$format->name][$name] = array('tip' => $tip, 'id' => $name);
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment