diff Lib/IMPL/Security/Role.pm @ 144:b56ebc31bf18

Empty nodes no more created while transforming a post request to the DOM document minor speed improvements to the object CTOR caching Added support for a secure processing (and 'laundering' ) a CGI parameters Many minor fixes
author wizard
date Tue, 13 Jul 2010 02:05:38 +0400
parents 79bf75223afe
children 4267a2ac3d46
line wrap: on
line diff
--- a/Lib/IMPL/Security/Role.pm	Thu Jul 08 23:46:49 2010 +0400
+++ b/Lib/IMPL/Security/Role.pm	Tue Jul 13 02:05:38 2010 +0400
@@ -12,8 +12,8 @@
 sub CTOR {
 	my ($this,$name,$parentRoles) = @_;
 	
-	$this->roleName($name);
-	$this->parentRoles($parentRoles);
+	$this->roleName($name) if $name;
+	$this->parentRoles($parentRoles) if $parentRoles;
 }
 
 sub Satisfy {