Updates code to make it work with php 5.3
Merge pull request #13 from deseretdigital/make_code_work_php53

Updates code to make it work with php 5.3