[ticket/15637] Extract all lines before the first @tag

PHPBB3-15637
This commit is contained in:
kasimi 2018-07-07 16:09:29 +02:00
parent 0aea8ecd83
commit 21faf69d31
No known key found for this signature in database
GPG key ID: 3163AB573241193A

View file

@ -270,8 +270,8 @@ class php_exporter
{ {
$description_line = substr(trim($this->file_lines[$description_line_num]), strlen('* ')); $description_line = substr(trim($this->file_lines[$description_line_num]), strlen('* '));
// Reached end of description if line is empty or a tag // Reached end of description if line is a tag
if (!strlen($description_line) || $description_line[0] == '@') if (strlen($description_line) && $description_line[0] == '@')
{ {
break; break;
} }