mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
FilterEditor: add failsafe string cast
This commit is contained in:
parent
84458eff26
commit
a75bfd1dfb
@ -243,4 +243,13 @@ class FilterEditor extends AbstractWidget
|
||||
. '</li></ul><br /><input type="submit" name="submit" value="Apply" />'
|
||||
. '</form>';
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
try {
|
||||
return $this->render();
|
||||
} catch (Exception $e) {
|
||||
return 'ERROR in FilterEditor: ' . $e->getMessage();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user