X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiOptions.php;h=8c996a267e4b88b25309ced4002b05490249c073;hb=d8e9288c7b574d35ea435295c219f2ac902391e4;hp=faebcdc7d52808a1b27f41b5e374ce1093499305;hpb=88e01ff9d6783e2175d6af1124169fcfb087db39;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiOptions.php b/includes/api/ApiOptions.php index faebcdc7d5..8c996a267e 100644 --- a/includes/api/ApiOptions.php +++ b/includes/api/ApiOptions.php @@ -25,9 +25,9 @@ */ /** -* API module that facilitates the changing of user's preferences. -* Requires API write mode to be enabled. -* + * API module that facilitates the changing of user's preferences. + * Requires API write mode to be enabled. + * * @ingroup API */ class ApiOptions extends ApiBase { @@ -80,7 +80,8 @@ class ApiOptions extends ApiBase { $validation = $field->validate( $value, $user->getOptions() ); break; case 'registered-multiselect': - // A key for a multiselect option. + case 'registered-checkmatrix': + // A key for a multiselect or checkmatrix option. $validation = true; $value = $value !== null ? (bool) $value : null; break;