[ticket/15044] Make sure fulltext native min and max are numbers

PHPBB3-15044
This commit is contained in:
Marc Alexander 2017-01-24 21:47:37 +01:00
parent a03047da5b
commit 10dee52c18
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -120,7 +120,7 @@ class fulltext_native extends \phpbb\search\base
$this->phpbb_dispatcher = $phpbb_dispatcher;
$this->user = $user;
$this->word_length = array('min' => $this->config['fulltext_native_min_chars'], 'max' => $this->config['fulltext_native_max_chars']);
$this->word_length = array('min' => (int) $this->config['fulltext_native_min_chars'], 'max' => (int) $this->config['fulltext_native_max_chars']);
/**
* Load the UTF tools