r67402 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67401‎ | r67402 | r67403 >
Date:14:03, 5 June 2010
Author:fabianh
Status:deferred
Tags:
Comment:
line 356: new condition to prevent notice
Modified paths:
  • /trunk/extensions/SemanticResultFormats/BibTeX/SRF_BibTeX.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/BibTeX/SRF_BibTeX.php
@@ -355,7 +355,7 @@
356356 $URI = '';
357357 if ( $author ) {
358358 $arrayAuthor = explode( ' ', $author );
359 - $URI .= $arrayAuthor[1];
 359+ if(array_key_exists(1,$arrayAuthor)) $URI .= $arrayAuthor[1];
360360 }
361361 if ( $year ) $URI .= $year;
362362 if ( $title ) {

Status & tagging log