Closed (fixed)
Project:
Live Discussion
Version:
6.x-1.1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2009 at 13:39 UTC
Updated:
14 Aug 2009 at 22:00 UTC
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)
| Comment | File | Size | Author |
|---|---|---|---|
| live_discussions.zip | 2.45 KB | jvdkolk |
Comments
Comment #1
Prometheus6 commentedGood 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.