The function db_num_rows() does not exist in Drupal 6 (see http://drupal.org/node/114774#db-num-rows)

Fatal error: Call to undefined function db_num_rows() in /home/websites/drupal/sites/mysite/modules/livediscussions/live_discussions.module on line 92

I have made a workaround (see attached file)

CommentFileSizeAuthor
live_discussions.zip2.45 KBjvdkolk

Comments

Prometheus6’s picture

Status: Active » Fixed

Good catch, but the fix is different. It's to just get rid of the db_num_rows() call. The array of links is built in a while() loop, so if the query to return the links returns nothing, the array will be empty. I test for the empty array instead of the empty data set.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.