Topic: Obscure bug?

Just a quick post, I'm not sure if I'm the only one or whats going on but if I put this line

$result = $db->query('SELECT t.subject,t.id,p.message FROM '.$db->prefix.'topics as t LEFT JOIN '.$db->prefix.'posts as p ON (p.topic_id=t.id) WHERE t.forum_id=1 ORDER By t.posted DESC LIMIT 1') or error(__FILE__, __LINE__);

in header.php on line 235 right under ($hook = get_hook('hd_alert')) ? eval($hook) : null;

viewtopic.php...well lets just say it stops functioning correctly.

I'm not really sure what the issue is but hopefully I'm not the only one

This is a clean forum install...

I enjoy pie :)

Re: Obscure bug?

Without knowing what screws up, can't really say hmm

Re: Obscure bug?

Really I'm just wondering if I'm the only one experiencing this issue

I enjoy pie :)

Re: Obscure bug?

If you mean viewforum.php (viewtopic.php gives me no issues, but I'm not using the latest SVN atm: even so, I don't think there's a problem there), the issue is that you're overwriting $result.

http://fluxbb.org

Free PunBB Hosting - lots of mods, easy to customize

Re: Obscure bug?

Sorry I did mean viewforum, and I now that you bring it up, I understand...For some reason I was thinking that header.php is executed before other code, obviously I'm an idiot...Thanks

I enjoy pie :)

Re: Obscure bug?

To prevent accidental overwriting of extension-only variables we will be promoting the a certain use of variable names: $ext_<extension id>_<variable name>