<?php
if (!defined('ABSPATH')) {
    exit;
}

/* -------------------------------------------------------
   SMART MEDIA CLEANUP SCAN HISTORY
   Version: 1.1.6
------------------------------------------------------- */

if (!function_exists('smcmlc_get_last_scan_history_summary')) {
    function smcmlc_get_last_scan_history_summary() {
        $results = get_option('smcmlc_last_scan_results', array());

        if (!is_array($results)) {
            $results = array();
        }

        return array(
            'count' => count($results),
            'time'  => get_option('smcmlc_last_scan_time', ''),
        );
    }
}