diff --git a/library/Icinga/Protocol/Ldap/Query.php b/library/Icinga/Protocol/Ldap/Query.php index 4e25fe9d4..f82a40511 100644 --- a/library/Icinga/Protocol/Ldap/Query.php +++ b/library/Icinga/Protocol/Ldap/Query.php @@ -348,6 +348,11 @@ class Query } } + public function __toString() + { + return $this->create(); + } + /** * Descructor */