[vhffs-dev] [684] misric made some judicious comments about this patch....

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


Revision: 684
Author:   gradator
Date:     2007-07-07 17:04:12 +0000 (Sat, 07 Jul 2007)

Log Message:
-----------
misric made some judicious comments about this patch.... no comments please

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Robots/Group.pm


Modified: trunk/vhffs-api/src/Vhffs/Robots/Group.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Group.pm	2007-07-07 16:49:53 UTC (rev 683)
+++ trunk/vhffs-api/src/Vhffs/Robots/Group.pm	2007-07-07 17:04:12 UTC (rev 684)
@@ -148,9 +148,9 @@
 	return -1 if( ! defined $user );
 	return -2 if( ! defined $group );
 
-	if( $main->get_config->use_vhffsfs )  {
+	unless( $main->get_config->use_vhffsfs )  {
 		my $path = $user->get_home . "/" . $group->get_groupname;
-		unlink( $path ) if( $main->get_config->use_vhffsfs );
+		unlink( $path );
 	}
 	$group->add_history("The user ".$user->get_username." leave the group");
 	$user->add_history("The user ".$user->get_username." leave the group");
@@ -171,7 +171,7 @@
 	return -1 if( ! defined $user );
 	return -1 if( ! defined $group );
 
-	if( $main->get_config->use_vhffsfs )  {
+	unless( $main->get_config->use_vhffsfs )  {
 		my $path = $user->get_home . "/" . $group->get_groupname;
 		symlink( Vhffs::Functions::hash_groupname( $group->get_groupname , $main ) , $path );
 	}


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