Skip to content

Commit

Permalink
Item10447: making isGroup() more tollerant towards undefined parameter
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/branches/Release01x01@10930 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
OliverKrueger authored and OliverKrueger committed Mar 6, 2011
1 parent a6a0b47 commit a438f27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/lib/Foswiki/Users/BaseUserMapping.pm
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ See baseclass for documentation.

sub isGroup {
my ( $this, $name ) = @_;
$name ||= "";

#TODO: what happens to the code if we implement this using an iterator too?
return ( $this->{GROUPS}->{$name} );
Expand Down

0 comments on commit a438f27

Please sign in to comment.