aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/cron/task/core/tidy_search.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/phpBB/phpbb/cron/task/core/tidy_search.php b/phpBB/phpbb/cron/task/core/tidy_search.php
index 2665d18799..2c30274dfa 100644
--- a/phpBB/phpbb/cron/task/core/tidy_search.php
+++ b/phpBB/phpbb/cron/task/core/tidy_search.php
@@ -54,7 +54,6 @@ class tidy_search extends \phpbb\cron\task\base
*/
public function run()
{
- // Select the search method
$search_type = $this->config['search_type'];
// We do some additional checks in the module to ensure it can actually be utilised
@@ -78,10 +77,7 @@ class tidy_search extends \phpbb\cron\task\base
*/
public function is_runnable()
{
- // Select the search method
- $search_type = $this->config['search_type'];
-
- return class_exists($search_type);
+ return class_exists($this->config['search_type']);
}
/**