r110504 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110503‎ | r110504 | r110505 >
Date:17:07, 1 February 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
patch from bug 34106 by MWJames
Modified paths:
  • /trunk/extensions/SemanticResultFormats/BibTeX/SRF_BibTeX.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/BibTeX/SRF_BibTeX.php
@@ -272,7 +272,10 @@
273273 if ( $title ) {
274274 foreach ( explode( ' ', $title ) as $titleWord ) {
275275 $charsTitleWord = preg_split( '//', $titleWord, - 1, PREG_SPLIT_NO_EMPTY );
276 - $URI .= $charsTitleWord[0];
 276+
 277+ if ( !empty( $charsTitleWord ) ) {
 278+ $URI .= $charsTitleWord[0];
 279+ }
277280 }
278281 }
279282