    public static function deactivate($mod)
    {
        $mods = Options::v('modules');
        $mods = json_decode($mods, true);
        if (!is_array($mods) || $mods == '') {
            $mods = array();
        }
        //print_r($mods);
        $arr = '';
        for ($i = 0; $i < count($mods); ++$i) {
            # code...
            if ($mods[$i] == $mod) {
                //unset($mods[$i]);
            } else {
                $arr[] = $mods[$i];
            }
        }
        //print_r($arr);
        //asort($mods);
        $mods = json_encode($arr);
        $mods = Options::update('modules', $mods);
        if ($mods) {
            new Options();

            return true;
        } else {
            return false;
        }
    }
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.