]> git.mjollnir.org Git - s9y.git/commitdiff
Use SELECT DISTINCT to prevent multiple listings of an entry with multiple
authorslothman <slothman>
Wed, 19 Apr 2006 03:28:40 +0000 (03:28 +0000)
committerslothman <slothman>
Wed, 19 Apr 2006 03:28:40 +0000 (03:28 +0000)
selected categories.

plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php

index 3aaca7882ce3d7639005264170ba48a3428281e5..06b4a4c367e34651ea295d1af4ad03c145e575c7 100644 (file)
@@ -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