Last modified: 2007-01-11 18:37:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 5301 - select_position Database Call Broken
select_position Database Call Broken
Product: MediaWiki extensions
Classification: Unclassified
GIS (Other open bugs)
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
  Show dependency treegraph
Reported: 2006-03-21 01:29 UTC by Gregory Szorc
Modified: 2007-01-11 18:37 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Gregory Szorc 2006-03-21 01:29:33 UTC
On line 230 of the most recent version of database.php a call to array_merge is
made.  The first argument to this function is a string, where it should be an
array.  This causes the WHERE statement to be truncated to nothing.  To fix
this, change the line to read:

array_merge(array($condition) , array( 'page_id = gis_page' ) )

I am not sure if earlier versions of PHP allow a parameter to be a string, but I
can definitely say there is an issue with PHP 5.1.x.
Comment 1 Greg Sabino Mullane 2007-01-11 18:37:11 UTC
This has already been fixed in subversion. At least, it appears that
database.php has been split into GisDatabase.php and geo.php, and neither of
them now use array_merge. Thanks for the report.

Note You need to log in before you can comment on or make changes to this bug.