Forum OpenACS Development: Re: In 5.3.0 final, unable to drop content type using content_type__drop_type() in pg-8.1.5

How about this

ad_proc object_exists {
    -id:required
} {
    @author Jim Lynch (mailto:jim@jam.sessionsnet.org)
    @creation-date 2007-01-26

    @param id

    @return true if object whose id is $id exists
} {
    return [db_string test_exists \
	     "select
                  1
              from
                  acs_objects
              where
                  object_id = :id" \
	    -default "0"]

}