Prevent PHP warnings due to trying to fetch unset array entries
This commit is contained in:
parent
cb61358939
commit
adc1f27528
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ class action_plugin_tagalerts extends DokuWiki_Action_Plugin{
|
|||
if(is_null($tags)) true;
|
||||
|
||||
foreach($event->data['meta'] as &$meta) {
|
||||
|
||||
// FIXME: Skip entries where the "name" key is not set,
|
||||
// this might be a symptom of some bug.
|
||||
if ( ! array_key_exists('name', $meta) ) continue;
|
||||
|
||||
if($meta['name'] == 'keywords') {
|
||||
// Get an array of page's tags
|
||||
$this->pagetags = explode(',', $meta['content']);
|
||||
|
|
Loading…
Reference in a new issue