Fixing some php code that server doesn't like but local liked...