summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 02ea60d)
raw | patch | inline | side by side (parent: 02ea60d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 26 Jan 2010 07:47:41 +0000 (07:47 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 26 Jan 2010 07:47:41 +0000 (07:47 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15295 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_serverService.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_serverService.inc b/gosa-plugins/systems/admin/systems/class_serverService.inc
index 72fb365f132c7b9182d2ffe9b14b9f90f363bf14..0732ebed5aee9e1f6c9bbd74fdc29f7f9d7d7c1c 100644 (file)
*/
protected function cancelEdit()
{
- if($this->backup == NULL){
+ if($this->backup == NULL && $this->current){
$this->plugins[$this->current] = new $this->current($this->config,$this->dn,$this);
$this->plugins[$this->current]-> set_acl_base($this->acl_base);
$this->plugins[$this->current]-> set_acl_category(preg_replace("/\/$/","",$this->acl_category));
- }else{
+ }elseif(is_array($this->backup)){
foreach($this->backup as $name => $value){
$this->plugins[$this->current]->$name = $value;
}
if(!empty($img)){
return('<img src=\''.$img.'\'>');
}
- return("");
+ return(" ");
}