Glad I could help, http://pastebin.com/PieZyXf3 :D
You can find the changes on lines 255 and 292. Note that they're the encoding part. I didn't have time to properly decode it or test it, it just stopped array serialization errors from occuring.
Enjoy your vacation!