Moved $upgrade_notice = array() outside of "if" so that it will always be defined on line 202.