summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Arendsen Hein <thomas@intevation.de>2009-02-19 14:37:14 (GMT)
committerThomas Arendsen Hein <thomas@intevation.de>2009-02-19 14:37:14 (GMT)
commita6330ef5028d07e8eb5119b11cb7cf9cccfa521c (patch)
tree8bb3eeda8a8bb8eb577b62da0b609e3b275325af /lib
parenteda38bd9f9e30fa206f28da858dc3f54b80ed62f (diff)
downloadperl-Kolab-a6330ef5028d07e8eb5119b11cb7cf9cccfa521c.tar.gz
* lib/Kolab/LDAP.pm: Prevent "Use of uninitialized value in string eq"
if attribute kolabhomeserveronly is not set.
Diffstat (limited to 'lib')
-rw-r--r--lib/Kolab/LDAP.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Kolab/LDAP.pm b/lib/Kolab/LDAP.pm
index af87d6d..dec3467 100644
--- a/lib/Kolab/LDAP.pm
+++ b/lib/Kolab/LDAP.pm
@@ -468,7 +468,8 @@ sub createObject
Kolab::log('L', "Kolab::LDAP::createObject() skipping shared folder for other server $kolabhomeserver", KOLAB_DEBUG);
return;
}
- if( $object->get_value('kolabhomeserveronly') eq 'true' ) {
+ my $kolabhomeserveronly = $object->get_value('kolabhomeserveronly');
+ if( defined($kolabhomeserveronly) && $kolabhomeserveronly eq 'true' ) {
# Don't create the user's mailbox if it should be created on the kolabHomeServer only
Kolab::log('L', "Kolab::LDAP::createObject() skipping user mailbox creation for other server $kolabhomeserver", KOLAB_DEBUG);
return;