Fix PHP Warning when "contributor" is NULL
This commit is contained in:
parent
66f74305f7
commit
0c13153d8e
1 changed files with 10 additions and 8 deletions
|
@ -99,6 +99,7 @@ class action_plugin_semantic extends DokuWiki_Action_Plugin {
|
||||||
'email' => $user_data['mail']
|
'email' => $user_data['mail']
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (isset($meta['contributor'])) {
|
||||||
foreach ($meta['contributor'] as $uid => $fullname) {
|
foreach ($meta['contributor'] as $uid => $fullname) {
|
||||||
$contributor_data = $auth->getUserData($uid);
|
$contributor_data = $auth->getUserData($uid);
|
||||||
$json_ld['contributor'][] = array(
|
$json_ld['contributor'][] = array(
|
||||||
|
@ -108,6 +109,7 @@ class action_plugin_semantic extends DokuWiki_Action_Plugin {
|
||||||
'email' => $contributor_data['mail']
|
'email' => $contributor_data['mail']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue