Index: trunk/extensions/SemanticForms/specials/SF_FormStart.php |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | // This form can be used to create a sub-page for an |
67 | 67 | // existing page |
68 | 68 | |
69 | | - if ( $super_page !== '' ) { |
| 69 | + if ( !empty( $super_page ) ) { |
70 | 70 | $page_name = "$super_page/$page_name"; |
71 | 71 | } |
72 | 72 | |
— | — | @@ -173,7 +173,7 @@ |
174 | 174 | } |
175 | 175 | } |
176 | 176 | |
177 | | - if ( $params !== '' ) { |
| 177 | + if ( !empty( $params ) ) { |
178 | 178 | $redirect_url .= ( strpos( $redirect_url, '?' ) > - 1 ) ? '&' : '?'; |
179 | 179 | $redirect_url .= $params; |
180 | 180 | } |