A new user interface for you! Read more...

File fail-gracefully-if-no-reports-in-template-plugin.diff of Package modlogan

--- src/output/template/web.c	2004-08-08 11:12:46.000000000 +0200
+++ src/output/template/web.c	2004-08-18 01:34:25.000000000 +0200
@@ -2520,8 +2520,11 @@
 	/* set the correct link */
 	if (conf->menu && conf->menu->data && conf->menu->data->key) {
 		first_report = conf->menu->data->key;
-	} else {
+	} else if (conf->reports && conf->reports->data) {
 		first_report = conf->reports->data->key;
+	} else {
+		first_report = NULL;
+		fprintf(stderr, "No reports configured. Generating useless output.\n");
 	}
 	
 	/* go to the last element */