mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 01:38:41 +00:00
fix risky test
This commit is contained in:
parent
328e9c547e
commit
751ce51220
|
|
@ -300,11 +300,10 @@ abstract class ViewAbstract implements RenderableInterface
|
|||
$ob = (string) \json_encode($includeData);
|
||||
}
|
||||
} catch (\Throwable $e) {
|
||||
if ($this->isBuffered) {
|
||||
\ob_end_clean();
|
||||
}
|
||||
|
||||
$ob = '';
|
||||
if ($this->isBuffered) {
|
||||
$ob = \ob_get_clean();
|
||||
}
|
||||
}
|
||||
|
||||
return $ob;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user