bugfix: the slice page was broken when nobody is in slice
[plewww.git] / planetlab / nodes / node.php
index f457121..61c9db4 100644 (file)
@@ -23,7 +23,7 @@ require_once 'plc_objects.php';
 
 // -------------------- 
 // recognized URL arguments
-$node_id=intval($_GET['id']);
+$node_id=intval(get_array($_GET, 'id'));
 if ( ! $node_id ) { plc_error('Malformed URL - id not set'); return; }
 
 ////////////////////
@@ -312,7 +312,8 @@ if ( ! ($local_peer && $privileges)) {
                                               "action"=>"node-boot-state"));
   $boot_value .= $boot_form->start_html();
   $states = array( 'boot'=>'Boot', 'safeboot'=>'SafeBoot', 
-                  'disabled' => 'Disabled', 'reinstall'=>'Reinstall');
+                  'disabled' => 'Disabled', 'reinstall'=>'Reinstall',
+                  'upgrade' => 'Upgrade');
   $selectors=array();
   foreach ($states as $dbname=>$displayname) { 
     $selector=array("display"=>$displayname, "value"=>$dbname);