Active
Project:
Link Weights
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2011 at 19:04 UTC
Updated:
3 May 2011 at 12:02 UTC
The code at line 73 needs to be changed from
$links[$key]['weight'] = 0;
to
$links[$link]['weight'] = 0;
as $key is not an initialized variable here.
Regards,
Lukas
Comments
Comment #1
delykj commentedHere is the correct fix:
change:
foreach ($links as $link) {
$links[$key]['weight'] = 0;
}
to:
foreach (array_keys($links) as $key) {
$links[$key]['weight'] = 0;
}