add "No Site" message to show accounts w/ empty site_ids
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Mon, 15 Jun 2009 15:47:37 +0000 (15:47 +0000)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Mon, 15 Jun 2009 15:47:37 +0000 (15:47 +0000)
planetlab/persons/persons.php

index d4fcdfc..9aad433 100644 (file)
@@ -55,6 +55,8 @@ function person_status ($person) {
   // check that the person has keys
   if ( count($person['key_ids']) == 0)
     $messages [] = "No Key";
+  if ( count($person['site_ids']) == 0)
+      $messages [] = "No Site";
   if ( ! $person['enabled'] ) 
     $messages[] = "Disabled";
   // for tech-only people: outline user if in a slice