real fix for 9097
authorRiver Tarnell <river@users.mediawiki.org>
Thu, 8 Mar 2007 01:46:12 +0000 (01:46 +0000)
committerRiver Tarnell <river@users.mediawiki.org>
Thu, 8 Mar 2007 01:46:12 +0000 (01:46 +0000)
includes/Article.php

index ae09f33..a729bcb 100644 (file)
@@ -1710,7 +1710,7 @@ class Article {
                                # Update restrictions table
                                foreach( $limit as $action => $restrictions ) {
                                        if ($restrictions != '' ) {
-                                               $dbw->replace( 'page_restrictions', array('pr_page', 'pr_type'),
+                                               $dbw->replace( 'page_restrictions', array(array('pr_page', 'pr_type')),
                                                        array( 'pr_page' => $id, 'pr_type' => $action
                                                                , 'pr_level' => $restrictions, 'pr_cascade' => $cascade ? 1 : 0
                                                                , 'pr_expiry' => $encodedExpiry ), __METHOD__  );