diff --git a/lib/Froxlor/Config/ConfigDaemon.php b/lib/Froxlor/Config/ConfigDaemon.php index 78ca96bd..f90dc8f9 100644 --- a/lib/Froxlor/Config/ConfigDaemon.php +++ b/lib/Froxlor/Config/ConfigDaemon.php @@ -91,6 +91,9 @@ class ConfigDaemon $this->fullxml = $xml; $this->xpath = $xpath; $this->daemon = $this->fullxml->xpath($this->xpath); + if (count($this->daemon) !== 1) { + throw new Exception('XPath "' . $this->xpath . '" didn\'t return exactly one element'); + } $attributes = $this->daemon[0]->attributes(); if ($attributes['title'] != '') { $this->title = $this->parseContent((string)$attributes['title']); diff --git a/lib/configfiles/gentoo.xml b/lib/configfiles/gentoo.xml index 7027f4c8..81d5f70c 100644 --- a/lib/configfiles/gentoo.xml +++ b/lib/configfiles/gentoo.xml @@ -1702,7 +1702,7 @@ dovecot unix - n n - - pipe - //service[@type='smtp']/general/commands[@index=1]