Merge pull request #4010 from maulanaaghnii/parserutilswarning

Parserutils Warning
This commit is contained in:
Andreas Gohr 2023-11-14 11:03:28 +01:00 committed by GitHub
commit 7a83f336d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ function p_get_metadata($id, $key = '', $render = METADATA_RENDER_USING_CACHE)
$recursion = false;
}
$val = $meta['current'];
$val = $meta['current'] ?? null;
// filter by $key
foreach (preg_split('/\s+/', $key, 2, PREG_SPLIT_NO_EMPTY) as $cur_key) {