Last modified: 2010-05-31 08:50:25 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 T25724, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23724 - undefined index errors
undefined index errors
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-31 04:43 UTC by Ed
Modified: 2010-05-31 08:50 UTC (History)
0 users

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


Attachments

Description Ed 2010-05-31 04:43:58 UTC
In "further results" pages, I get the following errors:

Notice: Undefined index: order in D:\public_html\mediawiki\extensions\SemanticMediaWiki\specials\AskSpecial\SMW_SpecialAsk.php on line 116 Notice: Undefined index: order in D:\public_html\mediawiki\extensions\SemanticMediaWiki\specials\AskSpecial\SMW_SpecialAsk.php on line 120 Notice: Undefined index: sort in D:\public_html\mediawiki\extensions\SemanticMediaWiki\specials\AskSpecial\SMW_SpecialAsk.php on line 129 Notice: Undefined index: sort in D:\public_html\mediawiki\extensions\SemanticMediaWiki\specials\AskSpecial\SMW_SpecialAsk.php on line 132


Adding simple checks, like below, fixes it:

if (!array_key_exists ('order', $this->m_params))
  $this->m_params['order']='';
Comment 1 Markus Krötzsch 2010-05-31 08:50:25 UTC
Thanks for pointing this out. I have fixed and also slightly simplified the code now.

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


Navigation
Links