From: slothman Date: Wed, 19 Apr 2006 03:28:40 +0000 (+0000) Subject: Use SELECT DISTINCT to prevent multiple listings of an entry with multiple X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fb1f976936823f1066e155b9cce07f9cde778168;p=s9y.git Use SELECT DISTINCT to prevent multiple listings of an entry with multiple selected categories. --- diff --git a/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php b/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php index 3aaca78..06b4a4c 100644 --- a/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php +++ b/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php @@ -20,7 +20,7 @@ class serendipity_plugin_recententries extends serendipity_plugin { $propbag->add('description', PLUGIN_RECENTENTRIES_BLAHBLAH); $propbag->add('stackable', true); $propbag->add('author', 'Christian Machmeier'); - $propbag->add('version', '1.5'); + $propbag->add('version', '1.6'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', @@ -146,7 +146,7 @@ class serendipity_plugin_recententries extends serendipity_plugin { $dateformat = '%A, %B %e %Y'; } - $entries_query = "SELECT id, + $entries_query = "SELECT DISTINCT id, title, timestamp FROM {$serendipity['dbPrefix']}entries