projects
/
catagits/Catalyst-Plugin-Authentication.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
0c4ddd0
)
Can't deref an array field if it doesn't exist
Yuval Kogman [Wed, 9 Nov 2005 09:09:44 +0000 (09:09 +0000)]
lib/Catalyst/Plugin/Authentication/User/Hash.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Catalyst/Plugin/Authentication/User/Hash.pm
b/lib/Catalyst/Plugin/Authentication/User/Hash.pm
index
f7cbe5a
..
dbfb8a3
100644
(file)
--- a/
lib/Catalyst/Plugin/Authentication/User/Hash.pm
+++ b/
lib/Catalyst/Plugin/Authentication/User/Hash.pm
@@
-23,7
+23,7
@@
sub AUTOLOAD {
my $data = $self->{$key};
( $self->{__hash_obj_key_is_array}{$key} || $key =~ /roles/ )
- ? @$data
+ ? @{ $data || [] }
: $data;
}