Fix PHP Warning when "contributor" is NULL

This commit is contained in:
Giuseppe Di Terlizzi 2015-03-26 17:27:31 +01:00
parent 66f74305f7
commit 0c13153d8e

View file

@ -99,6 +99,7 @@ class action_plugin_semantic extends DokuWiki_Action_Plugin {
'email' => $user_data['mail']
);
if (isset($meta['contributor'])) {
foreach ($meta['contributor'] as $uid => $fullname) {
$contributor_data = $auth->getUserData($uid);
$json_ld['contributor'][] = array(
@ -108,6 +109,7 @@ class action_plugin_semantic extends DokuWiki_Action_Plugin {
'email' => $contributor_data['mail']
);
}
}
}