From: garvinhicking Date: Mon, 11 Dec 2006 11:52:43 +0000 (+0000) Subject: Fix showing the entry owner in preview, not the currently logged in author X-Git-Tag: 1.1~3 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e17ef550c65062fcca9d48b990a7258579cbf9c2;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'];