Like another person here said, you need to remove a { to get it to work when you edit a post, otherwise you'll get a parse error.
This
Code:
// censor hack
if ($foruminfo[censor]) {
$DB_site->query("UPDATE thread SET title='".addslashes(htmlspecialchars(censortext($title)))."', iconid=".intval($iconid)." WHERE threadid=$threadinfo[threadid]");
} else {
$DB_site->query("UPDATE thread SET title='".addslashes(htmlspecialchars($title))."', iconid=".intval($iconid)." WHERE threadid=$threadinfo[threadid]");
}
//$title="";
}
// end hack
Should be this:
Code:
// censor hack
if ($foruminfo[censor]) {
$DB_site->query("UPDATE thread SET title='".addslashes(htmlspecialchars(censortext($title)))."', iconid=".intval($iconid)." WHERE threadid=$threadinfo[threadid]");
} else {
$DB_site->query("UPDATE thread SET title='".addslashes(htmlspecialchars($title))."', iconid=".intval($iconid)." WHERE threadid=$threadinfo[threadid]");
//$title="";
}
// end hack