Fixing server PHP array error