diff options
Diffstat (limited to 'modules/filter/filter.module')
-rw-r--r-- | modules/filter/filter.module | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/modules/filter/filter.module b/modules/filter/filter.module index 617987421..5eb007fff 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -1301,14 +1301,12 @@ function _filter_html_tips($filter, $format, $long = FALSE) { $header = array(t('Tag Description'), t('You Type'), t('You Get')); preg_match_all('/<([a-z0-9]+)[^a-z0-9]/i', $allowed_html, $out); foreach ($out[1] as $tag) { - if (array_key_exists($tag, $tips)) { - if ($tips[$tag]) { - $rows[] = array( - array('data' => $tips[$tag][0], 'class' => array('description')), - array('data' => '<code>' . check_plain($tips[$tag][1]) . '</code>', 'class' => array('type')), - array('data' => $tips[$tag][1], 'class' => array('get')) - ); - } + if (!empty($tips[$tag])) { + $rows[] = array( + array('data' => $tips[$tag][0], 'class' => array('description')), + array('data' => '<code>' . check_plain($tips[$tag][1]) . '</code>', 'class' => array('type')), + array('data' => $tips[$tag][1], 'class' => array('get')) + ); } else { $rows[] = array( |