correcting syntax for php endif