Merge "Genderize Special:Preferences"
[lhc/web/wiklou.git] / includes / api / ApiOptions.php
index f21bbc0..265c2cc 100644 (file)
@@ -69,7 +69,7 @@ class ApiOptions extends ApiBase {
                        $newValue = isset( $params['optionvalue'] ) ? $params['optionvalue'] : null;
                        $changes[$params['optionname']] = $newValue;
                }
-               if ( !count( $changes ) ) {
+               if ( !$changed && !count( $changes ) ) {
                        $this->dieUsage( 'No changes were requested', 'nochanges' );
                }