added utf8 decode for the site name
[plewww.git] / planetlab / sites / sites.php
index 8eb5a03..d4ab6b9 100644 (file)
@@ -51,7 +51,7 @@ function site_status ($site) {
     if ( ! $site['enabled']) 
       $messages [] = "Not enabled";
     global $PENDING_CONSORTIUM_ID;
-    if ( $site['ext_consortium_id'] == $PENDING_CONSORTIUM_ID )
+    if ( $site['ext_consortium_id'] === $PENDING_CONSORTIUM_ID )
       $messages [] = "Pending registration";
   
     // check that site has at least a PI and a tech
@@ -149,7 +149,7 @@ if ($sites) foreach ($sites as $site) {
     $table->cell(l_site_t($site_id,$site_id));
   }
   $peers->cell($table,$peer_id);
-  $table->cell (l_site_t($site_id,htmlentities($site['name'])));
+  $table->cell (l_site_t($site_id,htmlentities(utf8_decode($site['name']))));
   $table->cell (l_site_t($site_id,$login_base));
   $table->cell (htmlentities($site['abbreviated_name']));
   if (plc_is_admin()) {