do not list duplicates as a result of federation.
[plewww.git] / planetlab / pub / sites.php
index 7fe70c4..87f4d40 100644 (file)
@@ -5,16 +5,13 @@
 // Mark Huang <mlhuang@cs.princeton.edu>
 // Copyright (C) 2006 The Trustees of Princeton University
 //
-// $Id: sites.php 144 2007-03-28 07:52:20Z thierry $ $
+// $Id$ $
 //
 
 // Get API handle
 require_once 'plc_session.php';
 global $adm;
 
-// Get sorting functions
-require_once 'plc_sorts.php';
-
 // Print header
 require_once 'plc_drupal.php';
 drupal_set_title('Sites');
@@ -29,8 +26,7 @@ include 'plc_header.php';
 <?php
 
 // All defined sites
-$sites = $adm->GetSites(array('is_public' => TRUE), array('name', 'url'));
-sort_sites($sites);
+$sites = $adm->GetSites(array('is_public' => TRUE, 'peer_id' => NULL), array('name', 'url'));
 
 foreach ($sites as $site) {
   $name = htmlspecialchars($site['name']);