Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
comment.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Jul 2009 at 23:25 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
catchOK this is just as broken, but for different reasons, just a bad drupal_static() conversion in comment.module.
Comment #2
catchComment #4
catchorly.
Comment #5
catchumm, bump?
Comment #6
dwwcatch asked me to review this in IRC. While the previous code was clearly broken, we don't actually need to avoid using drupal_static() entirely, we just need to use it properly. ;) If we initialize the static as NULL, we can test !isset() and set the real value for the variable. Also cleaned up the code comments a bit to clarify.
Comment #7
catchBoth changes make sense, think I just overreacted to the way we've been converting every, single, thing to drupal_static() indiscriminately.
Comment #8
webchickRe-worked some of the grammar on the comments and committed to HEAD. Thanks!