use # when title not set
authorgarvinhicking <garvinhicking>
Mon, 6 Feb 2006 12:37:37 +0000 (12:37 +0000)
committergarvinhicking <garvinhicking>
Mon, 6 Feb 2006 12:37:37 +0000 (12:37 +0000)
plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php

index 8a1143bda6eb193dc6668885f080789a4f7f9c5b..3aaca7882ce3d7639005264170ba48a3428281e5 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.4');
+        $propbag->add('version',       '1.5');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
@@ -167,6 +167,10 @@ class serendipity_plugin_recententries extends serendipity_plugin {
                                array('timestamp' => $entry['timestamp'])
                             );
 
+                if (empty($entry['title'])) {
+                    $entry['title'] = '#' . $entry['id'];
+                }
+                
                 echo '<a href="' . $entryLink . '" title="' . htmlspecialchars($entry['title']) . '">' . $entry['title'] . '</a><br />'
                      . '<div class="serendipitySideBarDate">'
                      . htmlspecialchars(serendipity_strftime($dateformat, $entry['timestamp']))