From 73b41769e7945f09f37451d2cc58afd6e6e9d5de Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 29 Sep 2014 11:28:58 +0200 Subject: [PATCH] __toString() should call __toString() as well if possible There may be cases that an error occurs and another _toString() implementation handles that appropriately. This is such a case. --- library/Icinga/Web/Wizard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Web/Wizard.php b/library/Icinga/Web/Wizard.php index dae2ffa63..916dc1112 100644 --- a/library/Icinga/Web/Wizard.php +++ b/library/Icinga/Web/Wizard.php @@ -474,6 +474,6 @@ class Wizard */ public function __toString() { - return $this->getForm()->render(); + return (string) $this->getForm(); } }