Merge "Add string length limits"
[lhc/web/wiklou.git] / includes / api / ApiBase.php
index cb3c2f6..83d2ae9 100644 (file)
@@ -1081,10 +1081,10 @@ abstract class ApiBase extends ContextSource {
                        } else {
                                $type = 'NULL'; // allow everything
                        }
                        } else {
                                $type = 'NULL'; // allow everything
                        }
+               }
 
 
-                       if ( $type == 'password' || !empty( $paramSettings[self::PARAM_SENSITIVE] ) ) {
-                               $this->getMain()->markParamsSensitive( $encParamName );
-                       }
+               if ( $type == 'password' || !empty( $paramSettings[self::PARAM_SENSITIVE] ) ) {
+                       $this->getMain()->markParamsSensitive( $encParamName );
                }
 
                if ( $type == 'boolean' ) {
                }
 
                if ( $type == 'boolean' ) {