Closed (outdated)
Project:
Drupal core
Version:
6.x-dev
Component:
comment.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2006 at 14:25 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
heine commentedobjects without properties are no longer empty() in php5.
Comment #2
mindless commentedguess you could use !isset. i don't really see when a comment object with no properties would be valid here..
Comment #3
mindless commentedUpdated patch attached, against current HEAD rev for comment.module.
you can still get a series of php warnings with a comment/edit/{invalid#} URL.
Comment #4
dries commentedCan we write this as
if ($comment) { // do stuff } else { return drupal_not_found(); }? That's more consistent with the rest of the Drupal code. Thanks.Comment #5
mindless commentedattached.
Comment #6
mindless commentedComment #7
mindless commentedRerolled patch from current cvs.
Comment #8
mindless commentedLet me know if anything more is needed on this one, thanks.
Comment #9
Freso commentedI can reproduce the bug, but the current patch doesn't apply:
Re-rolled the patch which made it work as advertised. AFAICT, it's RTBC.
Comment #10
gábor hojtsyNeither drupal_access_denied(), nor drupal_not_found() return anything. So why do we have return drupal_not_found() in the patch? It looks like being at the end of the function even.
Comment #11
Freso commentedThis patch is identical to the last one, with the exception of one less
return. I haven't tested that this new patch works or even applies, but it should work just as well as the other did. But as I haven't actually tested it, I'll just leave it as "needs review".Comment #12
catchNo longer applies.
Comment #13
dpearcefl commentedIs this still a problem in current D6?
Comment #14
dpearcefl commented