FilterEditor: add failsafe string cast

This commit is contained in:
Thomas Gelf 2014-11-15 22:50:35 +01:00
parent 84458eff26
commit a75bfd1dfb
1 changed files with 9 additions and 0 deletions

View File

@ -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();
}
}
}