diff --git a/sphinx_plugin/includes/search/fulltext_sphinx.php b/sphinx_plugin/includes/search/fulltext_sphinx.php index 3dfdb82..e0c467d 100644 --- a/sphinx_plugin/includes/search/fulltext_sphinx.php +++ b/sphinx_plugin/includes/search/fulltext_sphinx.php @@ -867,7 +867,7 @@ function searchd_running() exec('whereis -b pidof', $output); if (sizeof($output) > 1) { - $output = explode(' ', $output[0]); + $output = explode(' ', trim($output[0])); $pidof_command = $output[1]; // 0 is pidof: }