Fixing PHP warnings.