[vhffs-dev] [1223] fix ISE when subscriptions are closed

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1223
Author:   gradator
Date:     2008-06-11 14:41:44 +0200 (Wed, 11 Jun 2008)

Log Message:
-----------
fix ISE when subscriptions are closed

Modified Paths:
--------------
    trunk/vhffs-panel/subscribe.pl


Modified: trunk/vhffs-panel/subscribe.pl
===================================================================
--- trunk/vhffs-panel/subscribe.pl	2008-06-06 11:22:51 UTC (rev 1222)
+++ trunk/vhffs-panel/subscribe.pl	2008-06-11 12:41:44 UTC (rev 1223)
@@ -84,10 +84,16 @@
 
 if( $vhffs->get_config->get_allow_subscribe == 0 )
 {
-# Subscribe isn't allowed, inform user
-        $template = new HTML::Template( filename => $templatedir."/panel/misc/simplemsg.tmpl");
-        $template->param( MESSAGE => gettext("You cannot subscribe to VHFFS") );
-} elsif( defined $submitted ) {
+	# Subscribe isn't allowed, inform user
+        $template = new HTML::Template( filename => $templatedir.'/panel/misc/simplemsg.tmpl');
+        $template->param( MESSAGE => gettext('You cannot subscribe to VHFFS') );
+	$panel->light( $template );
+	$panel->display;
+	exit 0;
+}
+
+
+if( defined $submitted ) {
 # don't check if form hasn't been submitted
 
     # get filled in parameters


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/