More PHP warning fixes.