That's strange. I ran the file by itself on my server and it worked just great, even when turning error reporting to max I only get notices about undefined variables which is quite natural.
The error must be somewhere in the script calling this template, but something is fooling the parser into thinking it is in the template. Runaway " and { or } can do that sometimes.
Dave_L:s post has disappeared for me, and I can only see your post when in flat mode. The postlist showed that there was a new post by you though. Weird.
Maybe Dave_L answered to your post at the same time as you deleted it, so that it looked like the post was in the database when his post was entered, but instead it is now lost in cyberspace without a real home...
How big is the window between the check if the post exists and the insertion of a post? Can't be long?
Edit: Seems that there isn't any check that the post being answered to actually exists. So basically, this could happen any time someone is on the reply page when a post is deleted. I'm suprised it doesn't happen more often.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.