summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a14965e)
raw | patch | inline | side by side (parent: a14965e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 10 Nov 2006 13:01:10 +0000 (13:01 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 10 Nov 2006 13:01:10 +0000 (13:01 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5073 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/netatalk/class_netatalk.inc | patch | blob | history |
diff --git a/plugins/personal/netatalk/class_netatalk.inc b/plugins/personal/netatalk/class_netatalk.inc
index 9475f4d4b00fc16bc36f53e98385ede3d4d7314f..57edb1464129c6f57601892e8a88814199f23312 100644 (file)
if (!($obj->is_account) ) {
$errmsg.="Posix features are needed for netatalk accounts, enable them first. ";
}
- if ($ldap->count() == 0) {
+ if (count($this->shares)== 0) {
$errmsg.="At least one share with netatalk or NFS mount entry needed.";
}
if($errmsg==""){
$ldap = $this->config->get_ldap_link();
- /* Call parents save to prepare $this->attrs */
+ /* Reset array of used attributes, because plugin::save()
+ will not work with '-' in attributes names
+ after calling save restore attributes array */
+ $attributes = $this->attributes;
+ $this->attributes = array();
plugin :: save();
+ $this->attributes = $attributes;
/* Do attribute conversion */
foreach ($this->attributes as $val) {