Fixes a few minor notices caused by changes in PHP Behaviour from php 4 through php 5.3