Closed (fixed)
Project:
Freelinking
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2009 at 07:58 UTC
Updated:
8 Dec 2009 at 06:00 UTC
Go to the freelinking overview page, where you can see the collected Freelinks.
Don't check the checkboxes, and just press the Update button.
What hsould be: "No items selected"
What comes:
* warning: array_filter() [function.array-filter]: The first argument should be an array in /var/www/drupal-6.9/sites/all/modules/freelinking/freelinking.module on line 359.
* No items selected
The First one is not intended.
A quick & dirty hack would be changing line 359 from
$links = array_filter($form_values['links']);
to
$links = array_filter(array($form_values['links']));
But I don't know if that is goog PHP practice ;-) I don't know PHP.
Comments
Comment #1
Grayside commentedNot quite right, because if the form is submitted with actual values you would break actual updates.
Conditionally setting a NULL to be an empty array should do it.
Comment #2
Grayside commentedPlease test the -dev version so the change can be released as part of Freelinking 1.9.