Revert untested code change from r41086. Don't call methods on non-objects, the fatal...
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 24 Sep 2008 16:09:06 +0000 (16:09 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 24 Sep 2008 16:09:06 +0000 (16:09 +0000)
includes/ExternalStoreDB.php

index caac3b1..cb3c331 100644 (file)
@@ -123,7 +123,9 @@ class ExternalStoreDB {
         */
        function store( $cluster, $data ) {
                $dbw = $this->getMaster( $cluster );
-
+               #if( !$dbw ) {
+               #       return false;
+               #}
                $id = $dbw->nextSequenceValue( 'blob_blob_id_seq' );
                $dbw->insert( $this->getTable( $dbw ), 
                        array( 'blob_id' => $id, 'blob_text' => $data ),