Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
comment.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Nov 2010 at 20:04 UTC
Updated:
29 Nov 2010 at 00:50 UTC
Jump to comment: Most recent file
If you remove the comment form with alters you get notices. This patch is utterly trivial as !empty and (implicit) cast to bool always lead to the same result just without the notices.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | drupal.comment-form-empty.5.patch | 762 bytes | sun |
| comment_form_empty.patch | 1.03 KB | chx |
Comments
Comment #1
yched commentedLooks like a no-brainer - but :
Do we clutter templates with isset()s, or make sure the variable is at least an empty string / empty array ?
Comment #2
dries commentedThe majority of the template files don't use isset()s, but it is not entirely consistent.
Comment #3
moshe weitzman commentedseems like this is pretty clear and committable as is.
Comment #4
sunyched and Dries are right, we don't use !empty() or isset() in template files.
http://api.drupal.org/api/drupal/modules--comment--comment.module/functi...
Comment #5
sunComment #6
yched commentedLooks nicer :-)
Comment #7
chx commentedAWESOME thanks.
Comment #8
webchickCommitted to HEAD. Thanks!