diff options
author | kasimi <mail@kasimi.net> | 2018-07-07 21:53:26 +0200 |
---|---|---|
committer | kasimi <mail@kasimi.net> | 2018-07-07 22:41:40 +0200 |
commit | eedcb3bbe14c6745c10a959da31657f36d8914c3 (patch) | |
tree | 8f1c42b3d3d8f8546296df6db2806e4c5cd5ecb0 /phpBB/phpbb/event | |
parent | 245f4df47c0d33ef8fe83bc5fd049a1afda79bb1 (diff) | |
download | forums-eedcb3bbe14c6745c10a959da31657f36d8914c3.tar forums-eedcb3bbe14c6745c10a959da31657f36d8914c3.tar.gz forums-eedcb3bbe14c6745c10a959da31657f36d8914c3.tar.bz2 forums-eedcb3bbe14c6745c10a959da31657f36d8914c3.tar.xz forums-eedcb3bbe14c6745c10a959da31657f36d8914c3.zip |
[ticket/15637] Remove trailing space from description
PHPBB3-15637
Diffstat (limited to 'phpBB/phpbb/event')
-rw-r--r-- | phpBB/phpbb/event/php_exporter.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/phpbb/event/php_exporter.php b/phpBB/phpbb/event/php_exporter.php index 15dd13190e..71c94a681d 100644 --- a/phpBB/phpbb/event/php_exporter.php +++ b/phpBB/phpbb/event/php_exporter.php @@ -281,6 +281,12 @@ class php_exporter $description_line_num++; } + // If there is an empty line between description and first tag, remove it + if (!strlen(end($description_lines))) + { + array_pop($description_lines); + } + $description = trim(implode('<br/>', $description_lines)); if (isset($this->events[$this->current_event])) |