Refs #5807, fix build regression (accessing archive.php via web request results in PHP error).