# File lib/flickr/upload.rb, line 184
        def checkTickets(tickets)
                tickets = [tickets] if tickets.class != Array
                targ = tickets.map{|t|
                        t.id.to_s if t.class == Flickr::Ticket }.join(',')
                res = @flickr.call_method('flickr.photos.upload.checkTickets',
                        'tickets' => targ)
                tickets = []
                res.elements['/uploader'].each_element('ticket') do |tick|
                        att = tick.attributes
                        tid = att['id']
                        t = @flickr.ticket_cache_lookup(tid) ||
                                Flickr::Ticket.new(tid,self)
                        t.complete = Flickr::Ticket::COMPLETE[att['complete'].to_i]
                        t.photoid = att['photoid']
                        t.invalid = true if (att['invalid'] &&
                                (att['invalid'].to_i == 1))
                        @flickr.ticket_cache_store(t)
                        tickets << t
                end
                return tickets
        end