Index: trunk/extensions/CodeReview/ui/CodeRevisionView.php |
— | — | @@ -764,7 +764,9 @@ |
765 | 765 | */ |
766 | 766 | protected function signoffButtons( $signOffs ) { |
767 | 767 | $userSignOffs = $this->getUserSignoffs( $signOffs ); |
768 | | - $strikeButton = Xml::submitButton( wfMsg( 'code-signoff-strike' ), array( 'name' => 'wpStrikeSignoffs' ) ); |
| 768 | + $strikeButton = count( $userSignOffs ) |
| 769 | + ? Xml::submitButton( wfMsg( 'code-signoff-strike' ), array( 'name' => 'wpStrikeSignoffs' ) ) |
| 770 | + : ''; |
769 | 771 | $signoffText = wfMsgHtml( 'code-signoff-signoff' ); |
770 | 772 | $signoffButton = Xml::submitButton( wfMsg( 'code-signoff-submit' ), array( 'name' => 'wpSignoff' ) ); |
771 | 773 | $checks = ''; |