More PHP5.4 fixes and fix a deprecated variable error in Contact
PHP5.4 fix for Xinha