Fixing a few PHP notices.