Fixed a couple PHP errors in install/upgrade.php that kept it from running at all