From 5d579631d73339dbc5c1265a969db30f220d3630 Mon Sep 17 00:00:00 2001 From: Martin Beckmann Date: Sat, 27 Feb 2016 15:14:31 +0100 Subject: [PATCH] [ticket/14443] substr($var, 0, 1) -> $var[0] PHPBB3-14443 --- phpBB/includes/functions_messenger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index 6cef791814..89f8e76dd3 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -214,7 +214,7 @@ class messenger { global $config, $phpbb_root_path, $phpEx, $user, $phpbb_extension_manager; - $template_dir_prefix = (!$template_dir_prefix || substr($template_dir_prefix, 0, 1) === '/') ? $template_dir_prefix : '/' . $template_dir_prefix; + $template_dir_prefix = (!$template_dir_prefix || $template_dir_prefix[0] === '/') ? $template_dir_prefix : '/' . $template_dir_prefix; $this->setup_template();