From faf2db4e5f099109a8cd6e2e55b8b6de5108e8d4 Mon Sep 17 00:00:00 2001 From: Lucas Schmoeller da Silva Date: Thu, 14 Nov 2013 17:26:33 -0200 Subject: [PATCH] #31 No detalhe do Aluno, mostrar corretamente se o aluno utiliza ou não transporte público escolar --- ieducar/intranet/educar_aluno_det.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ieducar/intranet/educar_aluno_det.php b/ieducar/intranet/educar_aluno_det.php index a3f09d2..a86a1e6 100644 --- a/ieducar/intranet/educar_aluno_det.php +++ b/ieducar/intranet/educar_aluno_det.php @@ -643,8 +643,8 @@ class indice extends clsDetalhe catch (Exception $e) { } - $this->addDetalhe(array('Transporte escolar', isset($transporteAluno) ? 'Sim' : 'Não')); - if ($transporteAluno) { + $this->addDetalhe(array('Transporte escolar', isset($transporteAluno) && $transporteAluno->responsavel!='Não utiliza' ? 'Sim' : 'Não')); + if ($transporteAluno && $transporteAluno->responsavel!='Não utiliza') { $this->addDetalhe(array('Responsável transporte', $transporteAluno->responsavel)); } -- libgit2 0.21.2