From 891bb772fbf8fd3468ccf0e99999baa525961b86 Mon Sep 17 00:00:00 2001 From: Giuseppe Di Terlizzi Date: Thu, 12 Nov 2015 14:09:07 +0100 Subject: [PATCH] Fixed little issue in helper.php for Dublin Core Metadata --- helper.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/helper.php b/helper.php index 57a9183..824a34d 100644 --- a/helper.php +++ b/helper.php @@ -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(