From: garvinhicking Date: Mon, 11 Dec 2006 11:52:18 +0000 (+0000) Subject: Fix showing the entry owner in preview, not the currently logged in author X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f7e283578ee4c2402ea7e59c6c11c8167463cb0a;p=s9y.git Fix showing the entry owner in preview, not the currently logged in author --- diff --git a/include/admin/entries.inc.php b/include/admin/entries.inc.php index e7098cb..3862787 100644 --- a/include/admin/entries.inc.php +++ b/include/admin/entries.inc.php @@ -419,7 +419,10 @@ switch($serendipity['GET']['adminAction']) { } if (!isset($entry['realname']) || !$entry['realname']) { - if (!empty($serendipity['realname'])) { + if (is_numeric($entry['id'])) { + $_entry = serendipity_fetchEntry('id', $entry['id'], 1, 1); + $entry['realname'] = $_entry['author']; + } elseif (!empty($serendipity['realname'])) { $entry['realname'] = $serendipity['realname']; } else { $entry['realname'] = $serendipity['serendipityUser'];