--- serendipity_plugin_entrylinks.php.orig 2008-05-26 19:46:26.000000000 +0200 +++ serendipity_plugin_entrylinks.php 2008-05-26 20:26:00.000000000 +0200 @@ -135,15 +135,15 @@ class serendipity_plugin_entrylinks exte $row['path'], (!empty($row['query']) ? '?' . $row['query'] : '') ); - $counter[$url] = $row['fullcount']; } } } - $references = serendipity_db_query("SELECT link, max(name) as name FROM {$serendipity['dbPrefix']}references WHERE entry_id = " . $id . " AND type = '' GROUP BY link ORDER BY id"); + $references = serendipity_db_query("SELECT link, max(name) as name, max(id) as id FROM {$serendipity['dbPrefix']}references WHERE entry_id = " . $id . " AND type = '' GROUP BY link ORDER BY id"); + if (is_array($references)) { - $links = '