Compare commits

...

2 commits

2 changed files with 8 additions and 6 deletions

View file

@ -131,7 +131,8 @@ class helper_plugin_semantic extends DokuWiki_Plugin
*/
public function getAuthor()
{
return ($this->meta['creator'] ? $this->meta['creator'] : null);
return ( array_key_exists('creator', $this->meta ) ?
$this->meta['creator'] : null;
}
/**
@ -141,7 +142,8 @@ class helper_plugin_semantic extends DokuWiki_Plugin
*/
public function getAuthorID()
{
return ($this->meta['user'] ? $this->meta['user'] : null);
return ( array_key_exists('user', $this->meta ) ?
$this->meta['user'] : null;
}
/**

View file

@ -1,7 +1,7 @@
base semantic
author Giuseppe Di Terlizzi
email giuseppe.diterlizzi@gmail.com
date 2023-02-02
author Giuseppe Di Terlizzi, patched by vv221 for Numenaute
email numenaute@vv221.fr
date 2024-10-04
name Semantic Plugin
desc Add Semantic Data in DokuWiki
url http://www.dokuwiki.org/plugin:semantic
url https://git.vv221.fr/numenaute.org/dokuwiki-plugin-semantic/about/