Index: trunk/phase3/maintenance/importDump.php |
— | — | @@ -74,6 +74,10 @@ |
75 | 75 | } |
76 | 76 | |
77 | 77 | $this->reportingInterval = intval( $this->getOption( 'report', 100 ) ); |
| 78 | + if ( !$this->reportingInterval ) { |
| 79 | + $this->reportingInterval = 100; // avoid division by zero |
| 80 | + } |
| 81 | + |
78 | 82 | $this->dryRun = $this->hasOption( 'dry-run' ); |
79 | 83 | $this->uploads = $this->hasOption( 'uploads' ); // experimental! |
80 | 84 | if ( $this->hasOption( 'image-base-path' ) ) { |