Index: trunk/extensions/SemanticForms/specials/SF_FormEdit.php |
— | — | @@ -149,7 +149,9 @@ |
150 | 150 | // title - this needs to be done after formHTML() is |
151 | 151 | // called, because otherwise it doesn't take hold |
152 | 152 | // for some reason if the form is disabled. |
153 | | - if ( $target_title->exists() ) { |
| 153 | + if ( empty( $target_title ) ) { |
| 154 | + $s = wfMsg( 'sf_formedit_createtitlenotarget', $form_title->getText() ); |
| 155 | + } elseif ( $target_title->exists() ) { |
154 | 156 | $s = wfMsg( 'sf_formedit_edittitle', $form_title->getText(), $target_title->getPrefixedText() ); |
155 | 157 | } else { |
156 | 158 | $s = wfMsg( 'sf_formedit_createtitle', $form_title->getText(), $target_title->getPrefixedText() ); |