Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
node.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2007 at 20:35 UTC
Updated:
12 Nov 2007 at 22:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
simmerz commentedI've just fixed this bug. was a simple addition of an if() statement to check for content, and if not, it will return false, and therefore not print out anything at all.
Comment #2
simmerz commentedThe above is a patch for 5.1 btw
Comment #3
pfaocleConfirming this - just took me a while to hunt down as our styled #help divs were being shown even when empty. Its down to this snippet always returning the
<p></p>tags.Slighty amended patch, avoiding calling filter_xss_admin() twice.
Comment #4
drummAlways use explicit checks instead of casting to boolean, for example,
!empty($type->help). And we do not need to filter_xss() before checking if it exists or not.Comment #5
desbeers commentedProblem also exist in 6.0
Attached a patch for 6 that uses !empty($type->help). Note that isset(), as used before, is not working because $type->help is always set, but sometimes empty.
Fixes empty p's at node/*/add and node/*/edit.
Comment #6
desbeers commentedFixed in http://drupal.org/node/180897
Comment #7
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.