(bug 15391) catch DBQueryError too
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 13 Jan 2009 15:42:10 +0000 (15:42 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 13 Jan 2009 15:42:10 +0000 (15:42 +0000)
includes/ExternalStore.php

index d095aba..1e750bb 100644 (file)
@@ -92,6 +92,8 @@ class ExternalStore {
                                $url = $store->store( $params, $data ); // Try to save the object
                        } catch ( DBConnectionError $error ) {
                                $url = false;
+                       } catch( DBQueryError $error ) {
+                               $url = false;
                        }
                        if ( $url ) {
                                return $url; // Done!