From 0b7b863273a34985768bfe071480ec21e13f1fbd Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Wed, 14 Apr 2010 16:35:06 +0200 Subject: [PATCH] Make sure there is no extra white space around the pidof command. --- sphinx_plugin/includes/search/fulltext_sphinx.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: }