summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1222035)
raw | patch | inline | side by side (parent: 1222035)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 29 Dec 2009 11:11:50 +0000 (11:11 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 29 Dec 2009 11:11:50 +0000 (11:11 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14975 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc | patch | blob | history |
diff --git a/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc b/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc
index 696503ec1f0d16b2766aac2cd3f1216cb3511e3d..43e542c7e18e60c063aaeb7e3efd4cf14887c4a6 100644 (file)
$result['error'] = "";
// Check whether the selected server exists.
- if(!isset($this->servers[$this->selected_server])){
+ if($this->selected_server == "unknown" || !isset($this->servers[$this->selected_server])){
$this->servers["unknown"]['status'] = sprintf(_("The selected server '%s' does not exists!"),$this->selected_server);
$this->servers["unknown"]["cn"] = "-";
return($result);
// Check database connectivity
$name = $this->selected_server;
+
+
+
$server = $this->servers[$name];
$link = @mysql_pconnect($server['cn'], $server['User'], $server['Password']);
if ($link === FALSE){
}
// Get Host
- if( isset($_POST['selected_host']) &&
+ if( isset($this->servers[$this->selected_server]['Hosts']) && isset($_POST['selected_host']) &&
($_POST['selected_host'] == "all" ||
in_array($_POST['selected_host'],$this->servers[$this->selected_server]['Hosts']))){
$this->selected_host = $_POST['selected_host'];
}
// Get priority from post
- if( isset($_POST['selected_priority']) &&
+ if( isset($this->servers[$this->selected_server]['Priorities']) && isset($_POST['selected_priority']) &&
($_POST['selected_priority'] == "all" ||
in_array($_POST['selected_priority'],$this->servers[$this->selected_server]['Priorities']))){
$this->selected_priority = $_POST['selected_priority'];