(bug 20372) Improve rollback-revisiondelete handling
[lhc/web/wiklou.git] / includes / ExternalStoreDB.php
index 9aa3af8..c37e706 100644 (file)
@@ -136,6 +136,9 @@ class ExternalStoreDB {
                        array( 'blob_id' => $id, 'blob_text' => $data ), 
                        __METHOD__ );
                $id = $dbw->insertId();
+               if ( !$id ) {
+                       throw new MWException( __METHOD__.': no insert ID' );
+               }
                if ( $dbw->getFlag( DBO_TRX ) ) {
                        $dbw->immediateCommit();
                }