Issue 747 - fix some PHP notices
Merge pull request #752 from jrfnl/Issue-747-PHP-notices

Issue #747 - fix some PHP notices