Merge "Replace deprecated `setIconTitle` with `setTitle`"
[lhc/web/wiklou.git] / includes / api / ApiBlock.php
index 8976626..ed3d01c 100644 (file)
@@ -61,7 +61,7 @@ class ApiBlock extends ApiBase {
                                $editingRestriction = 'partial';
                        }
 
-                       $pageRestrictions = implode( "\n", $params['pagerestrictions'] );
+                       $pageRestrictions = implode( "\n", (array)$params['pagerestrictions'] );
                }
 
                if ( $params['userid'] !== null ) {