From 2fe81c1ccb20035c9d66503726a7ff8df8b7fd78 Mon Sep 17 00:00:00 2001
From: Marc Alexander <admin@m-a-styles.de>
Date: Sun, 20 Dec 2015 22:20:56 +0100
Subject: [ticket/14373] Do not pass arrays to strpos()

PHPBB3-14373
---
 phpBB/phpbb/install/helper/iohandler/iohandler_base.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'phpBB/phpbb/install')

diff --git a/phpBB/phpbb/install/helper/iohandler/iohandler_base.php b/phpBB/phpbb/install/helper/iohandler/iohandler_base.php
index 8dee5390a9..7271fe9bc0 100644
--- a/phpBB/phpbb/install/helper/iohandler/iohandler_base.php
+++ b/phpBB/phpbb/install/helper/iohandler/iohandler_base.php
@@ -101,7 +101,7 @@ abstract class iohandler_base implements iohandler_interface
 	 */
 	public function add_error_message($error_title, $error_description = false)
 	{
-		if (strpos($error_title, '<br />') !== false)
+		if (!is_array($error_title) && strpos($error_title, '<br />') !== false)
 		{
 			$error_title = strip_tags(htmlspecialchars_decode($error_title));
 		}
-- 
cgit v1.2.1