From: Aaron Schulz Date: Wed, 24 Sep 2008 16:09:06 +0000 (+0000) Subject: Revert untested code change from r41086. Don't call methods on non-objects, the fatal... X-Git-Tag: 1.31.0-rc.0~45113 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22sites_tous%22%29%20.%20%22?a=commitdiff_plain;h=e4ea50b35e7bdc61d952fe8506a144ffd617fe79;p=lhc%2Fweb%2Fwiklou.git Revert untested code change from r41086. Don't call methods on non-objects, the fatal will stop even with the error catching. --- 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 ),