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…
Reference in New Issue