| @@ -199,16 +199,10 @@ | ||
| 199 | 199 | $this->persist_scan( $report, $phase ); |
| 200 | 200 | |
| 201 | 201 | // Push to history only when the whole scan has finished (either 'all' in one call, |
| 202 | 202 | // or a 'slow' phase that immediately follows a 'fast' phase within the same minute). |
| 203 | - if ( 'all' === $phase ) { | |
| 203 | + if ( 'all' === $phase || 'slow' === $phase ) { | |
| 204 | 204 | $this->push_history( $report ); |
| 205 | - } elseif ( 'slow' === $phase ) { | |
| 206 | - // The slow phase closes a scan the fast one started, so what goes | |
| 207 | - // to the history is the two merged, as persist_scan() has just | |
| 208 | - // stored them. The report of this phase alone carries only its own | |
| 209 | - // checks, and the trend showed every manual scan as a collapse. | |
| 210 | - $this->push_history( $this->get_last_scan() ); | |
| 211 | 205 | } |
| 212 | 206 | |
| 213 | 207 | return $report; |
| 214 | 208 | } |