That was the code on the archive.php file on my site. It was never edited, as far as I can remember. I don't really edit .php files because I really don't know what I'm doing when it comes to them, so if I did edit it in the past it was just through Notepad.
I tried searching the internet for a basic WordPress archive.php file, but I can't seem to find one.