X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetlab%2Fsites%2Fpcu.php;h=f7005ec90a8c59dc32e4014b394fcfba40c7dfa5;hb=f8c3df6c7afdeed9564c9efec42baaf97fc5ba2a;hp=1ec30890ee4de1f1055acb03ee27beb38c0b7cf5;hpb=b9c88ef1d81730922317338a3e774d987ce1889d;p=plewww.git diff --git a/planetlab/sites/pcu.php b/planetlab/sites/pcu.php index 1ec3089..f7005ec 100644 --- a/planetlab/sites/pcu.php +++ b/planetlab/sites/pcu.php @@ -22,7 +22,7 @@ $_roles= $_person['role_ids']; // if no id: add, else: display(update) -if( !$_GET['id'] ) { +if( !get_array($_GET, 'id') ) { if( $_POST['submitted'] ) { // get person's site id $site_id= $_person['site_ids'][0]; @@ -58,11 +58,11 @@ if( !$_GET['id'] ) {

\n"; } else { // get PCU info - $pcu_id= intval( $_GET['id'] ); + $pcu_id= intval( get_array($_GET, 'id') ); $pcu_info= $api->GetPCUs( array( intval( $pcu_id ) ) ); // if remove is set remove the node from the pcu - if( $_GET['remove'] ) { + if( get_array($_GET, 'remove') ) { $rem_id= $_GET['remove']; $api->DeleteNodeFromPCU( intval( $rem_id ), $pcu_id );