Index: trunk/extensions/SemanticForms/specials/SF_FormEdit.php |
— | — | @@ -188,7 +188,7 @@ |
189 | 189 | $wgOut->setPageTitle( $s ); |
190 | 190 | |
191 | 191 | if ( $form_submitted ) { |
192 | | - if ( !empty( $page_name_formula ) ) { |
| 192 | + if ( !is_null( $page_name_formula ) && $page_name_formula !== '' ) { |
193 | 193 | $target_name = $generated_page_name; |
194 | 194 | // prepend a super-page, if one was specified |
195 | 195 | if ( $wgRequest->getCheck( 'super_page' ) ) { |
Index: trunk/extensions/SemanticForms/specials/SF_FormStart.php |
— | — | @@ -64,8 +64,7 @@ |
65 | 65 | $page_name = $wgRequest->getVal( 'page_name' ); |
66 | 66 | // This form can be used to create a sub-page for an |
67 | 67 | // existing page |
68 | | - |
69 | | - if ( !empty( $super_page ) ) { |
| 68 | + if ( !is_null( $super_page ) && $super_page !== '' ) { |
70 | 69 | $page_name = "$super_page/$page_name"; |
71 | 70 | } |
72 | 71 | |
— | — | @@ -184,7 +183,7 @@ |
185 | 184 | } |
186 | 185 | } |
187 | 186 | |
188 | | - if ( !empty( $params ) ) { |
| 187 | + if ( !is_null( $params ) && $params !== '' ) { |
189 | 188 | $redirect_url .= ( strpos( $redirect_url, '?' ) > - 1 ) ? '&' : '?'; |
190 | 189 | $redirect_url .= $params; |
191 | 190 | } |