r32483 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32482‎ | r32483 | r32484 >
Date:20:58, 26 March 2008
Author:brion
Status:old
Tags:
Comment:
don't spew PHP warnings when checking for 'compact' param
Modified paths:
  • /trunk/extensions/Poem/Poem.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Poem/Poem.php
@@ -39,7 +39,7 @@
4040 /* using newlines in the text will cause the parser to add <p> tags,
4141 * which may not be desired in some cases
4242 */
43 - $nl = $param['compact']? '' : "\n";
 43+ $nl = isset( $param['compact'] ) ? '' : "\n";
4444
4545 if( method_exists( $parser, 'recursiveTagParse' ) ) {
4646 //new methods in 1.8 allow nesting <nowiki> in <poem>.

Status & tagging log