summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 55d18c0)
raw | patch | inline | side by side (parent: 55d18c0)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 15 Jan 2007 08:16:36 +0000 (08:16 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 15 Jan 2007 08:16:36 +0000 (08:16 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5562 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_terminalStartup.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_terminalStartup.inc b/plugins/admin/systems/class_terminalStartup.inc
index c63edb99d9c9f799520da60e524ca1a195057053..1ec97f962aa178440666b0735ce700ef80eba0d5 100644 (file)
/* attribute list for save action */
- var $attributes= array("gotoLdapServer", "gotoBootKernel", "gotoKernelParameters");
+ var $attributes= array("gotoLdapServer", "gotoBootKernel", "gotoKernelParameters","gotoModules");
var $objectclasses= array("GOhard");
/* Helper */
/* Get arrays */
foreach (array("gotoModules") as $val){
- if (isset($this->attrs["$val"]["count"])){
- for ($i= 0; $i<$this->attrs["count"]; $i++){
- if (isset($this->attrs["$val"][$i])){
- array_push($this->$val, $this->attrs["$val"][$i]);
+ $tmp =array();
+ if (isset($this->attrs[$val]["count"])){
+ for ($i= 0; $i<$this->attrs[$val]["count"]; $i++){
+ if (isset($this->attrs[$val][$i])){
+ $tmp[] = $this->attrs["$val"][$i];
}
}
}
+ $this->$val = $tmp;
sort ($this->$val);
$this->$val= array_unique($this->$val);
}
/* Delete module */
if (isset ($_POST['delete_module'])){
if (count($_POST['modules_list']) && chkacl ($this->acl, "gotoModule") == ""){
- $this->del_list ($this->gotoModules, $_POST['modules_list']);
+ $this->gotoModules = $this->del_list($this->gotoModules, $_POST['modules_list']);
}
}
if (isset ($this->$val) && count ($this->$val) != 0){
$this->attrs["$val"]= array_unique($this->$val);
+ }else{
+ $this->attrs["$val"]=array();
}
- if(!isset($this->attrs["$val"])) $this->attrs["$val"]=array();
}
/* Strip out 'default' values */
/* Delete value to array, check if unique */
- function del_list (&$array, $list)
+ function del_list ($array, $list)
{
$tmp= array();
foreach ($array as $mod){
$tmp[]= $mod;
}
}
- $array= $tmp;
+ return($tmp);
}
/* Generate ListBox frindly output for the defined shares