[vhffs-dev] [2045] normalised all delete sub

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


Revision: 2045
Author:   gradator
Date:     2012-02-24 22:51:52 +0100 (Fri, 24 Feb 2012)
Log Message:
-----------
normalised all delete sub

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

Modified: trunk/vhffs-api/src/Vhffs/User.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/User.pm	2012-02-24 21:09:04 UTC (rev 2044)
+++ trunk/vhffs-api/src/Vhffs/User.pm	2012-02-24 21:51:52 UTC (rev 2045)
@@ -383,9 +383,9 @@
 
 	$self = shift;
 
-	if( $self->{'group'}->delete < 0 ) {
-		# TODO: set Vhffs::Constants::DELETE_ERROR or something
-		return -2;
+	unless( $self->{'group'}->delete ) {
+		# TODO: set Vhffs::Constants::DELETION_ERROR
+		return undef;
 	}
 
 	# delete mail user if mail_user is enabled


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