Index: trunk/extensions/SemanticForms/specials/SF_RunQuery.php |
— | — | @@ -154,8 +154,9 @@ |
155 | 155 | $wgParser->getOutput()->addHeadItem( $script ); |
156 | 156 | } else { |
157 | 157 | $wgOut->addScript( $script ); |
158 | | - if ($wgParser->getOutput()) { |
159 | | - $wgOut->addParserOutputNoText( $wgParser->getOutput() ); |
| 158 | + $po = $wgParser->getOutput(); |
| 159 | + if ( $po ) { |
| 160 | + $wgOut->addParserOutputNoText( $po ); |
160 | 161 | } |
161 | 162 | } |
162 | 163 | |
Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -392,7 +392,7 @@ |
393 | 393 | wfRunHooks( 'sfUserCanEditPage', array( $this->mPageTitle, &$userCanEditPage ) ); |
394 | 394 | } |
395 | 395 | $form_text = ""; |
396 | | - if ( $userCanEditPage || $is_query ) { |
| 396 | + if ( $is_query || $userCanEditPage ) { |
397 | 397 | $form_is_disabled = false; |
398 | 398 | // Show "Your IP address will be recorded" warning if |
399 | 399 | // user is anonymous, and it's not a query - |