Error in html syntax in phpbb.module?

Events happening in the community are now at Drupal community events on www.drupal.org.
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.

Categories:

Comments

Was fixed in November I

Posted by arkepp on January 26, 2008 at 10:40am

phpbb

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /