I get a warning message:

Undefined variable: index in E:\esg\sites\all\modules\spam\filters\duplicate\duplicate.module:70

This is due to bad implementation of _duplicate_arg:

function _duplicate_arg($index = null) {
  static $arguments, $q;

  if (empty($arguments) || $q != $_GET['q']) {
    $arguments = explode('/', $_GET['q']);
    $q = $_GET['q'];
  }

  if (!isset($index)) {
    return $arguments; 
  } 

  if (isset($arguments[$index])) {
    return $arguments[$index];
  }
}

the middle if and the parameter $index is missing.

I'll attach my patch.

CommentFileSizeAuthor
duplicate.diff573 byteskeinstein

Comments

keinstein’s picture

Status: Needs work » Needs review
AlexisWilke’s picture

Status: Needs review » Fixed

We just need to define $index for the current usage. I fixed it that way in the development version.

Thank you.
Alexis

Status: Fixed » Closed (fixed)

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