Fixed little issue in helper.php for Dublin Core Metadata

This commit is contained in:
Giuseppe Di Terlizzi 2015-11-12 14:09:07 +01:00
parent ccbef54c7c
commit 891bb772fb

View file

@ -171,12 +171,15 @@ class helper_plugin_semantic extends DokuWiki_Plugin {
global $conf;
global $ID;
if (! $this->meta = $this->getMetadata()) return false;
if (! $this->meta) return false;
$license = $this->getLicense();
$contributors = array();
foreach ($this->meta['contributor'] as $uid => $fullname) {
$contributors[] = $fullname;
if (isset($this->meta['contributor'])) {
foreach ($this->meta['contributor'] as $uid => $fullname) {
$contributors[] = $fullname;
}
}
$dublin_core = array(