Index: trunk/extensions/SemanticForms/specials/SF_FormEdit.php |
— | — | @@ -308,10 +308,10 @@ |
309 | 309 | // Try to save the page! |
310 | 310 | $resultDetails = array(); |
311 | 311 | $saveResult = $editor->internalAttemptSave( $resultDetails ); |
312 | | - if ( method_exists( $saveResult, 'value' ) ) { |
| 312 | + // Return value was made an object in MW 1.19 |
| 313 | + if ( is_object( $saveResult ) ) { |
313 | 314 | $saveResultCode = $saveResult->value; |
314 | 315 | } else { |
315 | | - // Compatibility with MW < 1.19 |
316 | 316 | $saveResultCode = $saveResult; |
317 | 317 | } |
318 | 318 | |