Skud/writtenkitten — pull request #2 by cincodenada (2012-03-20 00:11:15+00:00)
Title: Some small tweaks, mainly for the Easter egg

A friend linked me to your site, and it's awesome, and of course I had to check out the Github.

I then noticed when testing the Easter egg that it was failing to pull in photos sporadically - to fix it, I tried escaping the query. It didn't fix it, but I figured it'd be good to be safe anyway. The real issue was that it assumed 100 photos were returned, which wasn't always true - even with the default search, I only got 95 kittens on one try. So sometimes it would try pulling in a non-existent photo. I used the count of the photos instead, so that it won't try to grab a photo that's not there.

I also got rid of the tmp variable since it wasn't really necessary here, but that's just my preference.