From e4ea50b35e7bdc61d952fe8506a144ffd617fe79 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 24 Sep 2008 16:09:06 +0000 Subject: [PATCH] Revert untested code change from r41086. Don't call methods on non-objects, the fatal will stop even with the error catching. --- includes/ExternalStoreDB.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/ExternalStoreDB.php b/includes/ExternalStoreDB.php index caac3b1485..cb3c331c5b 100644 --- a/includes/ExternalStoreDB.php +++ b/includes/ExternalStoreDB.php @@ -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 ), -- 2.20.1