Well, I'm not sure it is going to produce an error... by fail, I meant to say that it didn't find anything. If it doesn't find anything, then all the data for the rest of the module and templates won't exist and so the result is just a big mess. I do have some follow-on queries in some of the modules that will fail, but I'd like to catch it at the source, and redirect to another page in vbulletin. I tried a count() on the array, but it doesn't seem to work for me. I guess I'll have to stick something in the data that I can test for... I was hoping there was an easy way to determine if I didn't find any rows, and then just bale out.
Assuming that is figured out... how can I redirect out of this module? Is there some vBulletin function that would let me go elsewhere with a call? Or, do I need to call a template and build the contents with static data? I was hoping to just call a different page.
|