X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FuserOptions.php;h=2f8941f3daac14f171130be2c24e1453c2c39735;hb=3bdc458b4f70a05652f1b59a51c9a2e06006268c;hp=98f1c24a8626ecd9537be41c5785939527b2e305;hpb=b611d2806106a0f8ab61379ca56cf70a3d45d74e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/userOptions.php b/maintenance/userOptions.php index 98f1c24a86..2f8941f3da 100644 --- a/maintenance/userOptions.php +++ b/maintenance/userOptions.php @@ -110,11 +110,10 @@ The new option is NOT validated.' ); $ret[$option][$userValue] = ( $ret[$option][$userValue] ?? 0 ) + 1; } } else { - foreach ( $defaultOptions as $name => $defaultValue ) { $userValue = $user->getOption( $name ); if ( $userValue != $defaultValue ) { - $ret[$option][$userValue] = ( $ret[$option][$userValue] ?? 0 ) + 1; + $ret[$name][$userValue] = ( $ret[$name][$userValue] ?? 0 ) + 1; } } }