Goodbyte wrote:
I'm not sure about the code, but it looks like it could only run into an infinite loop if you have a thread where no parent==0.
You should run "SELECT COUNT(thread) FROM jos_fb_messages" and "SELECT COUNT(thread) FROM jos_fb_messages WHERE parent=0" on your database, to assure that every thread has its root (parent==0). Both results has to be the same.
SELECT COUNT(thread) FROM jos_fb_messages =
10814
SELECT COUNT(thread) FROM jos_fb_messages WHERE parent=0 =
2078
2078 messages are without a parent?
The meaning of this???
But this number is so similar to the number of thread and to the number of responses....
2070 threads, 10718 responses from fireboard backend....