X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=blobdiff_plain;f=includes%2Fapi%2FApiSetPageLanguage.php;h=84ab3ea98104de9f637fc04d1bbd3eaa09df3399;hb=dbac27bd42bdc72272c898c79c7011e2e0ef92c8;hp=54394a57d9fa13fa1ee8aac984edc63c49c76e13;hpb=1029b36698d38ae4712749e5baaa9505f1426447;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiSetPageLanguage.php b/includes/api/ApiSetPageLanguage.php index 54394a57d9..84ab3ea981 100644 --- a/includes/api/ApiSetPageLanguage.php +++ b/includes/api/ApiSetPageLanguage.php @@ -1,9 +1,5 @@ " * * This program is free software; you can redistribute it and/or modify @@ -84,7 +80,7 @@ class ApiSetPageLanguage extends ApiBase { $this, $titleObj, $params['lang'], - $params['reason'] === null ? '' : $params['reason'], + $params['reason'] ?? '', $params['tags'] ?: [] );