this probably counts for 4.4.1 too.

if comment module is not available the function should not be called.

Fatal error: Call to undefined function: comment_num_all() in /home/ber4/Documents/Projecten/DMP_dalsemmushrooms/www/modules/tracker.module on line 55

Comments

dries’s picture

Committed to HEAD. This does not need fixing in Drupal 4.4.x.

morbus iff’s picture

Assigned: Unassigned » morbus iff
StatusFileSize
new1.15 KB

This patch is broken - for installations where the comment.module is turned on, $comments is never set to 0, and posts that have no comments instead get the value of the last successful comment_num_all. The attached patch corrects this ($comments is set to 0 before we do anything) and also merges the if statements

dries’s picture

Committed to HEAD.

morbus iff’s picture