synergy/server/db/TribeDAO.php [267:279]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public function removeLeader($userId) {
        DB_DAO::connectDatabase();
        $handler = DB_DAO::getDB()->prepare("UPDATE tribe SET leader_id=:nid WHERE leader_id=:id ");
        $handler->bindParam(':id', $userId);
        $handler->bindValue(':nid', Synergy::getSessionProvider()->getUserId());

        if (!$handler->execute()) {
            DB_DAO::throwDbError($handler->errorInfo());
            return false;
        }

        return true;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



synergy/server/db/SpecificationDAO.php [509:521]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public function deleteAuthorship($userId) {
        DB_DAO::connectDatabase();
        $handler = DB_DAO::getDB()->prepare("UPDATE specification SET author_id=:nid WHERE author_id=:id ");
        $handler->bindParam(':id', $userId);
        $handler->bindValue(':nid', Synergy::getSessionProvider()->getUserId());

        if (!$handler->execute()) {
            DB_DAO::throwDbError($handler->errorInfo());
            return false;
        }

        return true;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



