diff options
Diffstat (limited to 'phpBB/phpbb/passwords/manager.php')
| -rw-r--r-- | phpBB/phpbb/passwords/manager.php | 9 | 
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/phpbb/passwords/manager.php b/phpBB/phpbb/passwords/manager.php index 38c12995b4..6c3ef4c477 100644 --- a/phpBB/phpbb/passwords/manager.php +++ b/phpBB/phpbb/passwords/manager.php @@ -297,7 +297,14 @@ class manager  		}  		else  		{ -			$this->convert_flag = $stored_hash_type->needs_rehash($hash); +			if ($stored_hash_type instanceof driver\rehashable_driver_interface) +			{ +				$this->convert_flag = $stored_hash_type->needs_rehash($hash); +			} +			else +			{ +				$this->convert_flag = false; +			}  		}  		// Check all legacy hash types if prefix is $CP$  | 
