Forum OpenACS Q&A: Re: New Package: News Aggregator

Collapse
Posted by Mark Aufflick on
The index fails if no blogger url property is set - the set post_url just needs wripping with if exists:

@@ -49,7 +49,9 @@
        set show_title_p 0
        set content "$item_description \[<a href=\"$link\">$title</a>\]"
    }
-    set post_url "${blogger_url}?[export_vars { content }]"
+      if {[info exists blogger_url]}  {
+              set post_url "${blogger_url}?[export_vars { content }]"
+      }
}

ad_return_template