More PHP errors fixed