From: Aaron Schulz Date: Mon, 23 Apr 2007 19:50:10 +0000 (+0000) Subject: *Do not convert to arrays X-Git-Tag: 1.31.0-rc.0~53262 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=215874c4895f8df3f7a318526b138e735456040f;p=lhc%2Fweb%2Fwiklou.git *Do not convert to arrays --- diff --git a/maintenance/updateRestrictions.php b/maintenance/updateRestrictions.php index f93a3fe783..6c8ffb5e49 100644 --- a/maintenance/updateRestrictions.php +++ b/maintenance/updateRestrictions.php @@ -36,10 +36,10 @@ function migrate_page_restrictions( $db ) { $temp = explode( '=', trim( $restrict ) ); if(count($temp) == 1) { // old old format should be treated as edit/move restriction - $oldRestrictions["edit"] = explode( ',', trim( $temp[0] ) ); - $oldRestrictions["move"] = explode( ',', trim( $temp[0] ) ); + $oldRestrictions["edit"] = trim( $temp[0] ); + $oldRestrictions["move"] = trim( $temp[0] ); } else { - $oldRestrictions[$temp[0]] = explode( ',', trim( $temp[1] ) ); + $oldRestrictions[$temp[0]] = trim( $temp[1] ); } } # Update restrictions table