From 4bb96ddf8bef988f82ede5bba48b4512ff1e5dc0 Mon Sep 17 00:00:00 2001 From: Uriel Date: Tue, 5 Jun 2007 11:08:24 +0200 Subject: [PATCH] Fix null concat error when opening rss feeds with no items --- bin/controller.rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/controller.rc b/bin/controller.rc index c8fde6c..b415b79 100755 --- 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