diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-09-11 03:30:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-09-11 03:30:03 +0000 |
commit | d41435295a6f6789efccc3e4cb96e7c0817cd04e (patch) | |
tree | 334301782ec970f65ca659b273f7cd8533a7d648 /modules | |
parent | fbf64a08f66d567c67883f4e15f3fded2235b8b5 (diff) | |
download | brdo-d41435295a6f6789efccc3e4cb96e7c0817cd04e.tar.gz brdo-d41435295a6f6789efccc3e4cb96e7c0817cd04e.tar.bz2 |
- Patch #905068 by Richard Eriksson: tips callback that returns nothing leads to empty list item.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/filter/filter.module | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/filter/filter.module b/modules/filter/filter.module index bc24eb50e..bf1b6f477 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -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); + } } } } |