Add curly braces to if statement
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 26 Sep 2015 20:38:25 +0000 (22:38 +0200)
committerReedy <reedy@wikimedia.org>
Sat, 26 Sep 2015 20:44:14 +0000 (20:44 +0000)
Change-Id: I827eb48ee030c338336d91dbfd016c22c5e3cb6b

includes/htmlform/HTMLButtonField.php

index 56a23ad..ea67702 100644 (file)
@@ -15,8 +15,9 @@ class HTMLButtonField extends HTMLFormField {
 
        public function __construct( $info ) {
                $info['nodata'] = true;
-               if ( isset( $info['flags'] ) )
+               if ( isset( $info['flags'] ) ) {
                        $this->mFlags = $info['flags'];
+               }
                parent::__construct( $info );
        }