X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=maintenance%2FupdateRestrictions.php;h=dec0bb69142b9a3f58743d9c2530e0fd7fe22a42;hb=1dcf5b66d33ebade1c5cc8d3b2803aa70c8bb958;hp=668ba790fa1d5b52e6822fc52833af9470c35ed7;hpb=1ff032419ddb425d6af458de022dc64379fb32f3;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/updateRestrictions.php b/maintenance/updateRestrictions.php index 668ba790fa..dec0bb6914 100644 --- a/maintenance/updateRestrictions.php +++ b/maintenance/updateRestrictions.php @@ -71,7 +71,7 @@ class UpdateRestrictions extends Maintenance { foreach ( $res as $row ) { $oldRestrictions = []; foreach ( explode( ':', trim( $row->page_restrictions ) ) as $restrict ) { - $temp = explode( '=', trim( $restrict ) ); + $temp = explode( '=', trim( $restrict ), 2 ); // Make sure we are not settings restrictions to "" if ( count( $temp ) == 1 && $temp[0] ) { // old old format should be treated as edit/move restriction