Don't filter out stories with no tags
authorChuck Hagenbuch <chuck@horde.org>
Fri, 17 Sep 2010 05:40:48 +0000 (01:40 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Fri, 17 Sep 2010 05:40:48 +0000 (01:40 -0400)
jonah/lib/Driver/Sql.php

index 9d1c3d1..eb4cc2e 100644 (file)
@@ -377,7 +377,7 @@ class Jonah_Driver_Sql extends Jonah_Driver
            'stories.story_updated AS updated, ' .
            'stories.story_read AS readcount ' .
            'FROM jonah_stories AS stories ' .
-           'JOIN jonah_stories_tags tags ON (stories.story_id = tags.story_id) ' .
+           'LEFT JOIN jonah_stories_tags tags ON (stories.story_id = tags.story_id) ' .
            'WHERE stories.channel_id=?';
 
         $values = array($criteria['channel_id']);