diff options
author | Thomas Arendsen Hein <thomas@intevation.de> | 2009-02-19 14:37:14 (GMT) |
---|---|---|
committer | Thomas Arendsen Hein <thomas@intevation.de> | 2009-02-19 14:37:14 (GMT) |
commit | a6330ef5028d07e8eb5119b11cb7cf9cccfa521c (patch) | |
tree | 8bb3eeda8a8bb8eb577b62da0b609e3b275325af | |
parent | eda38bd9f9e30fa206f28da858dc3f54b80ed62f (diff) | |
download | perl-Kolab-a6330ef5028d07e8eb5119b11cb7cf9cccfa521c.tar.gz |
* lib/Kolab/LDAP.pm: Prevent "Use of uninitialized value in string eq"
if attribute kolabhomeserveronly is not set.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/Kolab/LDAP.pm | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2009-02-18 Thomas Arendsen Hein <thomas@intevation.de> + + * lib/Kolab/LDAP.pm: Prevent "Use of uninitialized value in string eq" + if attribute kolabhomeserveronly is not set. + 2009-02-17 Thomas Arendsen Hein <thomas@intevation.de> * sbin/kolab_bootstrap.in: kolab/issue3407 (kolab_bootstrap: improve 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; |