From 4b832cf2bd95f1af44d72dee45ff23b1eb9179ae Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 29 Dec 2013 17:57:17 +0100 Subject: [PATCH] [feature/passwords] Intialize output array before usage in passwords helper PHPBB3-11610 --- phpBB/phpbb/passwords/helper.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpBB/phpbb/passwords/helper.php b/phpBB/phpbb/passwords/helper.php index c7937a4c5c..fdf2b6f907 100644 --- a/phpBB/phpbb/passwords/helper.php +++ b/phpBB/phpbb/passwords/helper.php @@ -41,6 +41,8 @@ class helper */ protected function get_combined_hash_settings($hash) { + $output = array(); + preg_match('#^\$([a-zA-Z0-9\\\]*?)\$#', $hash, $match); $hash_settings = substr($hash, strpos($hash, $match[1]) + strlen($match[1]) + 1); $matches = explode('\\', $match[1]);