From 6e4991093ae8f4ce22cc5bdf8b5bd8dcf42c14f3 Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Sat, 9 Aug 2014 10:41:56 +0200 Subject: [ticket/11854] Fix migration PHPBB3-11854 --- phpBB/phpbb/db/migration/data/v310/captcha_plugins.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'phpBB/phpbb/db') diff --git a/phpBB/phpbb/db/migration/data/v310/captcha_plugins.php b/phpBB/phpbb/db/migration/data/v310/captcha_plugins.php index 5e0a09e75a..e6f15ca407 100644 --- a/phpBB/phpbb/db/migration/data/v310/captcha_plugins.php +++ b/phpBB/phpbb/db/migration/data/v310/captcha_plugins.php @@ -24,9 +24,10 @@ class captcha_plugins extends \phpbb\db\migration\migration public function update_data() { + $captcha_plugin = $this->config['captcha_plugin']; if (strpos($this->config['captcha_plugin'], 'phpbb_captcha_') === 0) { - $captcha_plugin = substr(strlen('phpbb_captcha_'), $this->config['captcha_plugin']); + $captcha_plugin = substr($this->config['captcha_plugin'], strlen('phpbb_captcha_')); } return array( -- cgit v1.2.1