I have the following error in my form, I know I'm missing something but I do not know where. look:
<?php if(Session::getUID()!=""):?>
<?php
$u=null;
if(Session::getUID()!=""){
$u = PacientData::getById(Session::getUID());
$user = $u->name." ".$u->lastname." ".$u->username." ".$u->email;
?>
<table class="table table-bordered table-hover">
<thead>
<th>Nombre completo</th>
<th>Usuario</th>
<th>Email</th>
<th>Activo</th>
<th></th>
</thead>
<?php
foreach($users as $user){
?>
<tr>
<td><?php echo $user->name." ".$user->lastname; ?></td>
<td><?php echo $user->username; ?></td>
<td><?php echo $user->email; ?></td>
<td>
<?php if($user->is_active):?>
<i class="glyphicon glyphicon-ok"></i>
</td>
<td style="width:150px;"><a href="index.php?view=editpacient&id=<?php echo $user->id;?>" class="btn btn-warning btn-xs">Editar</a>
</tr>
<?php
endif;
}
?>
</div>
</div>
Where could the fault be?