1
0
Fork 0

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

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") {