From: Thierry Parmentelat Date: Mon, 12 Sep 2011 09:50:13 +0000 (+0200) Subject: minor bugfix for when there's no tag X-Git-Tag: plewww-4.3-67~1 X-Git-Url: http://git.onelab.eu/?p=plewww.git;a=commitdiff_plain;h=36816328c6f2ec97aad7059e90011b18d77e6d75 minor bugfix for when there's no tag --- diff --git a/planetlab/nodes/slivers.php b/planetlab/nodes/slivers.php index 62e46de..7310eb5 100644 --- a/planetlab/nodes/slivers.php +++ b/planetlab/nodes/slivers.php @@ -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']);