Hi,
I get this error:
warning: array_flip(): Can only flip STRING and INTEGER values! in /home/xlkorguk/public_html/ukfilm/ukfilmintranet_svn_export/trunk/modules/location/location.inc on line 1191.
I've installed the latest location module code from the CVS and I'm running a Drupal installation that's based on a download from the Drupal CVS from about a week ago.
PHP 4.4.1
MySQL 4.1.14
Linux server
Thanks,
Jack
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | location_inc_location_configured_countries.diff | 1.22 KB | will-at-hotgazpacho.org |
Comments
Comment #1
will-at-hotgazpacho.org commentedI'm seeing this, too, in location_configured_countries. I believe the real problem lies with this bit of code:
I believe the intent is to retrieve the list of configured countries, and return a hash of => (at least this is what the comments state). However, the foreach statement makes no sense, in light of the structure of the $configured_countries array. By definition, all the values of the $configured_countries array represent enabled ISO codes. So, looks to me like the code block SHOULD look something more like this:
I believe this will do what is intended, and with less steps, too. I'll test it and submit a patch if successful.
Comment #2
will-at-hotgazpacho.org commentedI was close. Call to arsort needs to occur in a statement seperate from thr retun statement (otherwise it only retuns TRUE or FALSE).
Comment #3
dan_aka_jack commentedNice, thanks for your reply and the fix. I'll wait for it to be included in the CVS before testing it.
Comment #4
ankur commentedSorry, from the previous update to this issue, I'm not sure this patch has been verified. Has it? If so, please feel free to commit this patch and to mark this issue as fixed afterward. It looks like a patch that needs to be committed to both HEAD and DRUPAL-4-6.
-Ankur
Comment #5
bootleg commentedI've run into this same issue, is there a fix for this? Thanks!
Comment #6
ankur commentedMuch thanks to WIll for looking into this and putting up a patch.
The patch has been applied to the HEAD branch.
Comment #7
(not verified) commented