Fix for certain PHP warnings.