Last modified: 2011-07-27 22:23:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T31654, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29654 - Undefined offset: 0 in ...\SemanticMediaWiki\includes\storage\SMW_SQLStore2_Queries.php on line 600
Undefined offset: 0 in ...\SemanticMediaWiki\includes\storage\SMW_SQLStore2_Q...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized major (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-30 10:47 UTC by s7eph4n
Modified: 2011-07-27 22:23 UTC (History)
1 user (show)

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


Attachments

Description s7eph4n 2011-06-30 10:47:48 UTC
I get an Undefined offset: 0 in ...\SemanticMediaWiki\includes\storage\SMW_SQLStore2_Queries.php on line 600. This breaks querying inverse properties. 

Offset 0 does not exist, the key of the array element is a string ('o_id'). Replace line 600 by

if ( ( count( $proptable->objectfields ) == 1 ) && ( reset($proptable->objectfields) == 'p' ) ) {


Semantic MediaWiki (Version 1.6 alpha)	(r90874)
Comment 1 Jeroen De Dauw 2011-07-27 22:23:58 UTC
Looks valid to me; applied in r93320.

Why not commit it yourself? :)

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


Navigation
Links