Index: trunk/phase3/includes/ExternalStore.php |
— | — | @@ -92,12 +92,12 @@ |
93 | 93 | $url = $store->store( $params, $data ); // Try to save the object |
94 | 94 | } catch ( DBConnectionError $error ) { |
95 | 95 | $url = false; |
96 | | - unset( $tryStores[$index] ); // Don't try this one again! |
97 | | - $tryStores = array_values( $tryStores ); // Must have consecutive keys |
98 | 96 | } |
99 | 97 | if ( $url ) { |
100 | 98 | return $url; // Done! |
101 | 99 | } else { |
| 100 | + unset( $tryStores[$index] ); // Don't try this one again! |
| 101 | + $tryStores = array_values( $tryStores ); // Must have consecutive keys |
102 | 102 | wfDebugLog( 'ExternalStorage', "Unable to store text to external storage $storeUrl" ); |
103 | 103 | } |
104 | 104 | } |