| @@ -109,9 +109,9 @@ | ||
| 109 | 109 | $module = $this->find_module_by_slug( $slug ); |
| 110 | 110 | if ( is_object( $module ) ) { |
| 111 | 111 | if ( 'malware-notification' === $module->slug ) { |
| 112 | 112 | // For a manual scan, always notify the triggering user regardless of notification status. |
| 113 | - $is_manual_with_user = ! $args->is_automation && get_transient( 'defender_scan_triggered_by_' . $args->id ); | |
| 113 | + $is_manual_with_user = ! $args->is_automation && (int) get_transient( 'defender_scan_triggered_by_' . $args->id ) > 0; | |
| 114 | 114 | if ( $is_manual_with_user || $module->check_options() ) { |
| 115 | 115 | $module->send( $args ); |
| 116 | 116 | } |
| 117 | 117 | } elseif ( 'firewall-notification' === $module->slug && $module->check_options( $args ) ) { |