X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetlab%2Fnodes%2Fslivers.php;h=d146c08d79c58e33545606a98cc0bdb480a75e6e;hb=HEAD;hp=62e46de7247e1f18c6f7613ba56ede1a753355f4;hpb=e8610d5468f1757a209b68d52978d05f0c85affd;p=plewww.git diff --git a/planetlab/nodes/slivers.php b/planetlab/nodes/slivers.php index 62e46de..d146c08 100644 --- a/planetlab/nodes/slivers.php +++ b/planetlab/nodes/slivers.php @@ -20,7 +20,7 @@ require_once 'form.php'; // if slice and node ids are passed display slivers and tags -if( $_GET['slice_id'] && $_GET['node_id'] ) { +if( get_array($_GET, 'slice_id') && get_array($_GET, 'node_id') ) { $slice_id = $_GET['slice_id']; $node_id = $_GET['node_id']; @@ -60,7 +60,7 @@ if( $_GET['slice_id'] && $_GET['node_id'] ) { $form->start(); $table->start(); - foreach ($tags as $tag) { + if ($tags) foreach ($tags as $tag) { $table->row_start(); $table->cell($tag['tagname']); $table->cell($tag['value']);