SqlHandler::drop_table PHP Method

drop_table() protected static method

Drop table
protected static drop_table ( $old_table )
    protected static function drop_table($old_table)
    {
        $old_table = !stristr($old_table, DB_PREFIX) ? DB_PREFIX . $old_table : $old_table;
        $result = dbquery("DROP TABLE IF EXISTS " . $old_table);
        if (!$result) {
            \defender::stop();
        }
        if (!\defender::safe()) {
            addNotice("danger", "Unable to drop " . $old_table);
        }
    }