synergy/server/db/ProjectDAO.php [65:78]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public function isNameUsed($name, $excludeID) {
        DB_DAO::connectDatabase();
        $handler = DB_DAO::getDB()->prepare("SELECT name FROM project WHERE name=:v AND id!=:i");
        $handler->bindValue(":v", Util::purifyHTML($name));
        $handler->bindValue(":i", $excludeID);
        if (!$handler->execute()) {
            DB_DAO::throwDbError($handler->errorInfo());
        }

        while ($row = $handler->fetch(PDO::FETCH_ASSOC)) {
            return true;
        }
        return false;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



synergy/server/db/VersionDAO.php [110:123]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public function isNameUsed($name, $excludeID = -1) {
        DB_DAO::connectDatabase();
        $handler = DB_DAO::getDB()->prepare("SELECT version FROM version WHERE version=:v AND id!=:i");
        $handler->bindValue(":v", Util::purifyHTML($name));
        $handler->bindValue(":i", $excludeID);
        if (!$handler->execute()) {
            DB_DAO::throwDbError($handler->errorInfo());
        }

        while ($row = $handler->fetch(PDO::FETCH_ASSOC)) {
            return true;
        }
        return false;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



