Last modified: 2007-05-21 00:10:26 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 9970 - Different return types depending on whether there is a result
Different return types depending on whether there is a result
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-05-19 22:09 UTC by Bryan Tong Minh
Modified: 2007-05-21 00:10 UTC (History)
1 user (show)

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


Description Bryan Tong Minh 2007-05-19 22:09:11 UTC
A call to imageusage which returns an non empty return set gives a dict object, while an empty return set returns an empty list:

		"imageusage": [

Non empty:
		"imageusage": {
			"1047480": {
				"pageid": 1047480,
				"ns": 6,
				"title": "Image:Israeli Army chopper flying to Lebanon Aug 11 2006 1.jpg"
Comment 1 Yuri Astrakhan 2007-05-21 00:10:26 UTC
fixed in r22292

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