    public static function latestVersion()
    {
        $check = json_decode(Options::v('system_check'), true);
        $now = strtotime(date('Y-m-d H:i:s'));

        if (isset($check['last_check'])) {
            $limit = $now - $check['last_check'];

            if ($limit < 86400) {
                $v = $check['version'];
            } else {
                $v = self::getLatestVersion($now);
            }
        } else {
            $v = self::getLatestVersion($now);
        }

        return $v;
    }
The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.