Skip to content

Commit

Permalink
Update array syntax
Browse files Browse the repository at this point in the history
fixes dokufreaks#11 with the creation dates
  • Loading branch information
gamma authored Oct 18, 2022
1 parent a4d13bc commit 03a503f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ public function render($mode, Doku_Renderer $renderer, $data)
}
} elseif (in_array($key, $protected)) {
// be careful with some sensitive arrays of $meta
if (is_array($renderer->meta) && array_key_exists($key, $renderer->meta)) {
$renderer->meta[$key] = array_merge($renderer->meta[$key], array($value));
if (is_array($renderer->meta) && is_array($value) && array_key_exists($key, $renderer->meta)) {
$renderer->meta[$key] = array_merge($renderer->meta[$key], (array)$value);
} else {
$renderer->meta[$key] = $value;
}
Expand Down

0 comments on commit 03a503f

Please sign in to comment.