commit a9cc90cefdf11b6b6821f5f865b33220b4633fd5
parent 1892cefb2567aa286ce69dd74246b17aa744b3c4
Author: uriel@engel.se.cat-v.org <unknown>
Date: Tue, 5 Jun 2007 11:08:24 +0200
Fix null concat error when opening rss feeds with no items
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bin/controller.rc b/bin/controller.rc
@@ -67,7 +67,8 @@ fn gensidebar {
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