shithub: werc

Download patch

ref: 199e3d304111bb0061ee0a8780a083f88c85d2df
parent: e348f8cc725490e56adbea2ade5f85e42e9fad08
author: uriel <[email protected]>
date: Tue Jun 5 07:08:24 EDT 2007

Fix null concat error when opening rss feeds with no items

--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -67,7 +67,8 @@
 
 fn sortedBlogPostList {
     # the /./ is added so we can sort -t. and order only the file name
-    ls $*^'/./' | grep '[0-9]+.*\.md$'| sort -r -t. +1
+    if (! ~ $#* 0)
+        ls $*^'/./' | grep '[0-9]+.*\.md$'| sort -r -t. +1
 }
 
 # Body