mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-06-09 00:22:45 -04:00
Cast widget render() result when casting to string
This commit is contained in:
parent
795e0a378d
commit
bd7280305a
1 changed files with 2 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ use Icinga\Exception\ProgrammingError;
|
|||
use Zend_Controller_Action_HelperBroker as ZfActionHelper;
|
||||
use Zend_View_Abstract;
|
||||
use Icinga\Web\Widget\Widget;
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* Web widgets MUST extend this class
|
||||
|
|
@ -126,6 +127,6 @@ abstract class AbstractWidget implements Widget
|
|||
} catch (Exception $e) {
|
||||
return htmlspecialchars($e->getMessage());
|
||||
}
|
||||
return $html;
|
||||
return (string) $html;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue