aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 594b1c4346..61aba60146 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3295,6 +3295,8 @@ function get_preg_expression($mode)
*/
function truncate_string($string, $max_length = 60, $allow_reply = true, $append = '')
{
+ global $user;
+
$chars = array();
$strip_reply = false;