Skip to content

Commit 7a83f33

Browse files
authored
Merge pull request dokuwiki#4010 from maulanaaghnii/parserutilswarning
Parserutils Warning
2 parents 921f1b8 + fa1a0dc commit 7a83f33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/parserutils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ function p_get_metadata($id, $key = '', $render = METADATA_RENDER_USING_CACHE)
310310
$recursion = false;
311311
}
312312

313-
$val = $meta['current'];
313+
$val = $meta['current'] ?? null;
314314

315315
// filter by $key
316316
foreach (preg_split('/\s+/', $key, 2, PREG_SPLIT_NO_EMPTY) as $cur_key) {

0 commit comments

Comments
 (0)