Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewEdit.php |
— | — | @@ -330,7 +330,9 @@ |
331 | 331 | $sk->makeKnownLinkObj( $this->getTitle( 'history/'.$filter ), $history_display ); |
332 | 332 | } |
333 | 333 | |
334 | | - $fields['abusefilter-edit-tools'] = $tools; |
| 334 | + if ($tools) { |
| 335 | + $fields['abusefilter-edit-tools'] = $tools; |
| 336 | + } |
335 | 337 | |
336 | 338 | $form = Xml::buildForm( $fields ); |
337 | 339 | $form = Xml::fieldset( wfMsg( 'abusefilter-edit-main' ), $form ); |