summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 73b80fd)
raw | patch | inline | side by side (parent: 73b80fd)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 Jun 2006 14:22:07 +0000 (14:22 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 Jun 2006 14:22:07 +0000 (14:22 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3672 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_terminalGeneric.inc | patch | blob | history | |
plugins/admin/systems/class_terminalStartup.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc
index 3872b38242e3a26077814f9b704a4a571581c661..7f07d2e8ea1d5fc612fecd3b35f5572d1f595a54 100644 (file)
$tmp2 = array();
foreach($this->config->data['SERVERS']['NFS'] as $server){
if($server != "default"){
- $tmp = split("\|",$server);
- $tmp3= split(":",$tmp[0]);
-
- $servername = $tmp3[0];
- $nfsname = $tmp3[1];
-
- $path ="";
- if(isset($tmp[4])){
- $path = $tmp[4];
- }
-
- $tmp2[$servername.":".$path]= $servername.":".$path;
+ $tmp2[$server]= $server;
}else{
$tmp2[$server]="["._("inherited")."]";
}
$this->attrs= $attrs;
}
- if($this->inheritTimeServer){
- $this->attrs['gotoNtpServer'] = array();
- }else{
- /* Set ntpServers */
- $this->attrs['gotoNtpServer'] = array();
+ /* Set ntpServers */
+ $this->attrs['gotoNtpServer'] = array();
+ if(!$this->inheritTimeServer){
foreach($this->gotoNtpServer as $server){
$this->attrs['gotoNtpServer'][] = $server;
}
$ldap->cd($this->config->current['BASE']);
$ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $this->dn));
$ldap->cd($this->dn);
+ if (!count($this->attrs['gotoNtpServer'])){
+ unset($this->attrs['gotoNtpServer']);
+ }
$ldap->add($this->attrs);
$this->handle_post_events("add");
} else {
diff --git a/plugins/admin/systems/class_terminalStartup.inc b/plugins/admin/systems/class_terminalStartup.inc
index 836e733a8a7d5095d77eb066f4b315f8e0370d60..7a02964f21b2b15e9cac8df5a262bdbd8d7a387f 100644 (file)
/* Strip out 'default' values */
foreach(array("gotoBootKernel","gotoLdapServer") as $value){
- if ($this->attrs[$value] == "default"){
+ if (!isset($this->attrs[$value]) || $this->attrs[$value] == "default"){
$this->attrs[$value] = array();
}
}