API: (bug 16115) API action=block dies with an exception when $wgBlockAllowsUTEdit...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 25 Oct 2008 22:22:22 +0000 (22:22 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 25 Oct 2008 22:22:22 +0000 (22:22 +0000)
includes/api/ApiBlock.php

index a760002..9cdf8ea 100644 (file)
@@ -127,7 +127,7 @@ class ApiBlock extends ApiBase {
                        'autoblock' => false,
                        'noemail' => false,
                        'hidename' => false,
-                       'allowusertalk' => $wgBlockAllowsUTEdit,
+                       'allowusertalk' => (bool)$wgBlockAllowsUTEdit,
                );
        }