Undefined index: value in nodewords_basic.module

Dave Reid - November 7, 2009 - 17:10
Project:Nodewords
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed
Description

On all of my admin pages I get the following PHP notice:

notice: Undefined index: value in /home/dave/Projects/www/drupal6dev/sites/all/modules/nodewords/nodewords_basic/nodewords_basic.module on line 187.

An empty $content array is being passed to nodewords_basic_canonical_prepare(), which causes problems:

function nodewords_basic_canonical_prepare(&$tags, $content, $options) {
  $content['value'] = trim($content['value'], '/');

  if (empty($content['value'])) {
    $path = '';
    ...

#1

kiamlaluno - November 8, 2009 - 00:37
Title:PHP notice: Undefined index: value in nodewords_basic.module» Undefined index: value in nodewords_basic.module
Status:active» fixed

The code has been changed, and committed in CVS.

Thanks for your help, Dave.

#2

System Message - November 22, 2009 - 00:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.