Ok, simple:
in
newthread.php AND
newreply.php. replace this...
PHP Code:
$rand_term = $DB_site->query_first("SELECT text AS term_text, description AS term_description FROM glossary ORDER BY RAND()");
extract($rand_term);
$term_description = str_replace("'", "\\'", htmlspecialchars(strip_tags($term_description)));
...with this...
PHP Code:
$rand_term = $DB_site->query("SELECT text AS term_text, description AS term_description FROM glossary ORDER BY RAND() LIMIT 1");
if ($DB_site->num_rows($rand_term)) {
extract($DB_site->fetch_array($rand_term));
$term_description = str_replace("'", "\\'", htmlspecialchars(strip_tags($term_description)));
}