[vhffs-dev] [svn] commit: r238 - /trunk/vhffs-panel/user/prefs.pl

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


Author: gradator
Date: Sun Oct 22 23:47:02 2006
New Revision: 238

Log:
Checking if $mu is not a negative numerical value


Modified:
    trunk/vhffs-panel/user/prefs.pl

Modified: trunk/vhffs-panel/user/prefs.pl
==============================================================================
--- trunk/vhffs-panel/user/prefs.pl (original)
+++ trunk/vhffs-panel/user/prefs.pl Sun Oct 22 23:47:02 2006
@@ -159,7 +159,8 @@
     my $mu = init Vhffs::Services::MailUser( $vhffs , $user );
 	my $tmp = "";
 
-	if( defined $mu )
+	# check if $mu is not a negative numerical value
+	if( ! $mu =~ /^-\d+$/ )
 	{
     
     $subtemplate->param( ACTIV_CHECKED => "checked" ) if( $mu->exists == 1         );




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