projects
/
licom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
If a value is not defined, only return an empty list if this is actually a list value.
[licom.git]
/
lib
/
LiCoM
/
Person.pm
diff --git
a/lib/LiCoM/Person.pm
b/lib/LiCoM/Person.pm
index
887e39e
..
0773f5b
100644
(file)
--- a/
lib/LiCoM/Person.pm
+++ b/
lib/LiCoM/Person.pm
@@
-492,7
+492,7
@@
sub set
}
if (!defined ($ValidFields{$field}))
{
}
if (!defined ($ValidFields{$field}))
{
- return
(undef)
;
+ return;
}
if (defined ($value))
}
if (defined ($value))
@@
-514,7
+514,10
@@
sub set
$entry->update ($Ldap);
}
$entry->update ($Ldap);
}
- $obj->{$field} = [] unless (defined ($obj->{$field}));
+ if (!defined ($obj->{$field}) and $ValidFields{$field})
+ {
+ $obj->{$field} = [];
+ }
if (wantarray () and $ValidFields{$field})
{
if (wantarray () and $ValidFields{$field})
{