Merge pull request #8356 from MrPetovan/bug/notices

Add check for semi-colon existence in theme file comment lines
This commit is contained in:
Michael Vogel 2020-03-01 20:51:02 +01:00 committed by GitHub
commit 25cc745d70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ class Theme
$comment_lines = explode("\n", $matches[0]);
foreach ($comment_lines as $comment_line) {
$comment_line = trim($comment_line, "\t\n\r */");
if ($comment_line != "") {
if (strpos($comment_line, ':') !== false) {
list($key, $value) = array_map("trim", explode(":", $comment_line, 2));
$key = strtolower($key);
if ($key == "author") {