Skip to content

Commit

Permalink
Update to Mantis 977
Browse files Browse the repository at this point in the history
The list of KB articles now displays correctly even whether the DB contained the 'userid' or the user's realname as the author.
  • Loading branch information
nicdev007 committed Oct 10, 2009
1 parent cc57860 commit e4be0dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kb.php
Expand Up @@ -116,6 +116,8 @@
{
if (empty($kbarticle->title)) $kbarticle->title = $strUntitled;
else $kbarticle->title = $kbarticle->title;
if (is_number($kbarticle->author)) $kbarticle->author = user_realname($kbarticle->author);
else $kbarticle->author = $kbarticle->author;
echo "<tr class='{$shade}'>";
echo "<td>".icon('kb', 16)." {$CONFIG['kb_id_prefix']}".leading_zero(4,$kbarticle->docid)."</td>";
echo "<td>";
Expand Down Expand Up @@ -149,7 +151,7 @@
echo "</a>";
echo "</td>";
echo "<td>".ldate($CONFIG['dateformat_date'], mysql2date($kbarticle->published))."</td>";
echo "<td>".user_realname($kbarticle->author)."</td>";
echo "<td>".$kbarticle->author."</td>";
echo "<td>{$kbarticle->keywords}</td>";
echo "</tr>\n";
if ($shade == 'shade1') $shade = 'shade2';
Expand Down

0 comments on commit e4be0dd

Please sign in to comment.