Index: trunk/phase3/maintenance/sqlite.php |
— | — | @@ -49,6 +49,9 @@ |
50 | 50 | |
51 | 51 | private function vacuum() { |
52 | 52 | $prevSize = filesize( $this->db->mDatabaseFile ); |
| 53 | + if ( $prevSize == 0 ) { |
| 54 | + $this->error( "Can't vacuum an empty database.\n", true ); |
| 55 | + } |
53 | 56 | |
54 | 57 | $this->output( 'VACUUM: ' ); |
55 | 58 | if ( $this->db->query( 'VACUUM' ) ) { |