Fixed some PHP Notices.