minor bugfix for when there's no tag
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 12 Sep 2011 09:50:13 +0000 (11:50 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 12 Sep 2011 09:50:13 +0000 (11:50 +0200)
planetlab/nodes/slivers.php

index 62e46de..7310eb5 100644 (file)
@@ -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']);