Fixed 'Illegal string offset 'LIMIT' in <b>C:\wamp\www\MediaWiki\includes\db\Database...
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 15 Mar 2012 04:34:22 +0000 (04:34 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 15 Mar 2012 04:34:22 +0000 (04:34 +0000)
includes/specials/SpecialUndelete.php

index b0df3c9..34be6b0 100644 (file)
@@ -405,13 +405,12 @@ class PageArchive {
                $article->loadPageData( 'fromdbmaster' );
                $oldcountable = $article->isCountable();
 
-               $options = 'FOR UPDATE'; // lock page
                $page = $dbw->selectRow( 'page',
                        array( 'page_id', 'page_latest' ),
                        array( 'page_namespace' => $this->title->getNamespace(),
                                   'page_title'     => $this->title->getDBkey() ),
                        __METHOD__,
-                       $options
+                       array( 'FOR UPDATE' ) // lock page
                );
                if( $page ) {
                        $makepage = false;