I have no idea if it's correct because I haven't tested it or anything. However, I do notice you are using both $threadinfo and $thread in the condition. I think $thread is the correct one.
You should print out the variables in the postbit and see what turns up. Print $threadinfo['postuserid'] and $post['userid'] (and $thread['postuserid'] ). That is how I debug conditions.
|