redo http://svn.planet-lab.org/changeset/13771 from scratch
[plewww.git] / planetlab / sites / site.php
index be4d5fb..d026a03 100644 (file)
@@ -92,7 +92,7 @@ else
 $techs = array();
 $pis = array();
 $disabled_persons = array();
-foreach( $persons as $person ) {
+if ($persons) foreach( $persons as $person ) {
   $role_ids= $person['role_ids'];
 
   if ( in_array( '20', $role_ids ))    $pis[] = $person;