From e950babe80cc6c8519cf19d3851053aa7d86d10f Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 26 Mar 2008 20:58:20 +0000 Subject: [PATCH] don't spew PHP warnings when checking for 'compact' param --- Poem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Poem.php b/Poem.php index ddc85b5..920ada7 100644 --- a/Poem.php +++ b/Poem.php @@ -39,7 +39,7 @@ function PoemExtension( $in, $param=array(), $parser=null ) { /* using newlines in the text will cause the parser to add

tags, * which may not be desired in some cases */ - $nl = $param['compact']? '' : "\n"; + $nl = isset( $param['compact'] ) ? '' : "\n"; if( method_exists( $parser, 'recursiveTagParse' ) ) { //new methods in 1.8 allow nesting in .