Changeset 559 for trunk/b2-include/b2functions.php
- Timestamp:
- 11/30/2003 12:55:19 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/b2-include/b2functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2-include/b2functions.php
r558 r559 294 294 global $smilies_directory, $use_smilies; 295 295 global $b2_smiliessearch, $b2_smiliesreplace; 296 296 $output = ''; 297 297 if ($use_smilies) { 298 298 // HTML loop taken from texturize function, could possible be consolidated … … 301 301 for ($i = 0; $i < $stop; $i++) { 302 302 $content = $textarr[$i]; 303 if ( '<' != $content{0}) { // If it's not a tag303 if ((strlen($content) > 0) && ('<' != $content{0})) { // If it's not a tag 304 304 $content = str_replace($b2_smiliessearch, $b2_smiliesreplace, $content); 305 305 } … … 1629 1629 if (isset($b2_filter['all'])) { 1630 1630 $b2_filter['all'] = (is_string($b2_filter['all'])) ? array($b2_filter['all']) : $b2_filter['all']; 1631 $b2_filter[$tag] = array_merge($b2_filter['all'], $b2_filter[$tag]); 1631 if (isset($b2_filter[$tag])) 1632 $b2_filter[$tag] = array_merge($b2_filter['all'], $b2_filter[$tag]); 1633 else 1634 $b2_filter[$tag] = array_merge($b2_filter['all'], array()); 1632 1635 $b2_filter[$tag] = array_unique($b2_filter[$tag]); 1633 1636 }
Note: See TracChangeset
for help on using the changeset viewer.