- $shortname = $peers->shortname($site['peer_id']);
- plc_table_row_start();
- plc_table_cell($shortname);
- plc_table_cell (l_site_t($site['site_id'],htmlentities($site['name'])));
- plc_table_cell ($site['login_base']);
- plc_table_cell (htmlentities($site['abbreviated_name']));
+ $peer_id=$site['peer_id'];
+ $site_id=$site['site_id'];
+ $login_base=$site['login_base'];
+ $table->row_start();
+ if (plc_is_admin()) {
+ $table->cell(l_site_t($site_id,$site_id));
+ }
+ $peers->cell($table,$peer_id);
+ $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']));