From fb1f976936823f1066e155b9cce07f9cde778168 Mon Sep 17 00:00:00 2001 From: slothman Date: Wed, 19 Apr 2006 03:28:40 +0000 Subject: [PATCH] Use SELECT DISTINCT to prevent multiple listings of an entry with multiple selected categories. --- .../serendipity_plugin_recententries.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5