[eluser]skribe[/eluser]
Hi:
I have some code that produces a list of people attached to a project as part of the client view. It cycles through the projects and lists the people. Unfortunately I can't figure out a way to test if nobody is attached to the project.
Any suggestions?
Code:
$person=array();
foreach($projects as $project):
$person = array($project->id => $project->name);
foreach($person as $id => $name):
$per[]=anchor('person/view/'.$id,$name);
endforeach;
<more code>
endforeach;