r113244 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113243‎ | r113244 | r113245 >
Date:16:24, 7 March 2012
Author:foxtrott
Status:deferred
Tags:
Comment:
bugfix (fatal error when parent property is empty string)
Modified paths:
  • /trunk/extensions/SemanticResultFormats/Tree/SRF_Tree.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/Tree/SRF_Tree.php
@@ -59,7 +59,7 @@
6060 */
6161 protected function getResultText( SMWQueryResult $res, $outputmode ) {
6262
63 - if ( $this->mTreeProp === null ) {
 63+ if ( $this->mTreeProp === null || $this->mTreeProp === '' ) {
6464 $res->addErrors( array( wfMsgForContent( 'srf-noparentprop' ) ) );
6565 return '';
6666 }