Fixed: the "Skip Import" link was hidden after unit tests

This commit is contained in:
fred
2017-07-10 18:27:52 +02:00
parent 4a2f9ad1f9
commit b88452c5a2
2 changed files with 10 additions and 1 deletions

View File

@ -65,7 +65,7 @@ if(!class_exists('ProgressBar', false)) {
* @param int $count Count
*/
public function setTotalCount($count) {
if($count != $this->total_count) {
if(($count != $this->total_count) || ($count == 0)) {
$this->total_count = $count;
$this->current_count = 0;
$this->saveProgress();
@ -93,6 +93,14 @@ if(!class_exists('ProgressBar', false)) {
)));
}
/**
* Delete the progress file
*
*/
public function deleteProgressFile() {
unlink($this->filename);
}
}
}