Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ public function start()

$output = ob_get_contents();

if ($output) {
// Finder plugins should not create output of any kind. If there is output, that very likely is the result of a PHP error.
if (trim($output)) {
throw new \Exception(Text::_('COM_FINDER_AN_ERROR_HAS_OCCURRED'));
}

Expand Down Expand Up @@ -201,7 +202,8 @@ public function batch()

$output = ob_get_contents();

if ($output) {
// Finder plugins should not create output of any kind. If there is output, that very likely is the result of a PHP error.
if (trim($output)) {
throw new \Exception(Text::_('COM_FINDER_INDEXER_ERROR_PLUGIN_FAILURE'));
}

Expand Down Expand Up @@ -251,7 +253,8 @@ public function optimize()

$output = ob_get_contents();

if ($output) {
// Finder plugins should not create output of any kind. If there is output, that very likely is the result of a PHP error.
if (trim($output)) {
throw new \Exception(Text::_('COM_FINDER_AN_ERROR_HAS_OCCURRED'));
}

Expand Down