Posted by alexic on January 26, 2008 at 7:58am
Hello,
I noticed on my site that there was a link that was spreaded all over the page!
So i looked at phpbb.module and i found an error:
at about line 700
<?php
// New topics since last visit
$query = "SELECT COUNT(<em>) FROM {$phpbbcfg['db_topics']} LEFT JOIN {$phpbbcfg['db_users']} ON {$phpbbcfg['db_topics']}.topic_time > {$phpbbcfg['db_users']}.user_lastvisit WHERE user_id = ". $user->uid;
$res = db_query($query);
$row = db_fetch_array($res);
$url = $phpbbcfg['path_abs'].'search.php?search_id=newposts&sr=topics';
$list[] = "<a href=\"$url\">Argomenti non letti({$row['COUNT(</em>)']})\n</a>";
// ^^^^^^^^^^^^
// New posts since last visit
$query = "SELECT COUNT(<em>) FROM {$phpbbcfg['db_posts']} LEFT JOIN {$phpbbcfg['db_users']} ON {$phpbbcfg['db_posts']}.post_time > {$phpbbcfg['db_users']}.user_lastvisit WHERE user_id = ". $user->uid;
$res = db_query($query);
$row = db_fetch_array($res);
$url = $phpbbcfg['path_abs'].'search.php?search_id=newposts&sr=posts';
$list[] = "<a href=\"$url\">Messaggi non letti ({$row['COUNT(</em>)']})\n</a>";
// ^^^^^^^^^^^^
return theme('item_list', $list);
?>The errors are the missing "< / a >" at the end of that line. simply add it.
Comments
Was fixed in November I
Was fixed in November I believe, see http://groups.drupal.org/node/6429#comment-21268