diff options
| -rw-r--r-- | phpBB/phpbb/db/migration/data/v310/reset_missing_captcha_plugin.php | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/phpBB/phpbb/db/migration/data/v310/reset_missing_captcha_plugin.php b/phpBB/phpbb/db/migration/data/v310/reset_missing_captcha_plugin.php index d5f9076196..8211457dc6 100644 --- a/phpBB/phpbb/db/migration/data/v310/reset_missing_captcha_plugin.php +++ b/phpBB/phpbb/db/migration/data/v310/reset_missing_captcha_plugin.php @@ -29,7 +29,8 @@ class reset_missing_captcha_plugin extends \phpbb\db\migration\migration  	{  		return array(  			array('if', array( -				(!is_file($this->phpbb_root_path . "includes/captcha/plugins/{$this->config['captcha_plugin']}_plugin." . $this->php_ext)), +				(is_dir($this->phpbb_root_path . 'includes/captcha/plugins/') && +				!is_file($this->phpbb_root_path . "includes/captcha/plugins/{$this->config['captcha_plugin']}_plugin." . $this->php_ext)),  				array('config.update', array('captcha_plugin', 'phpbb_captcha_nogd')),  			)),  		); | 
