Closed (fixed)
Project:
Spam
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Apr 2010 at 21:46 UTC
Updated:
8 Jan 2011 at 04:40 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| duplicate.diff | 573 bytes | keinstein |
Comments
Comment #1
keinstein commentedComment #2
AlexisWilke commentedWe just need to define $index for the current usage. I fixed it that way in the development version.
Thank you.
Alexis