fix wrong index in Portal Update.class.php