From b113a636720e243bb136da3d0fc8fbbd9a90b7c2 Mon Sep 17 00:00:00 2001 From: Felipe Guaycuru Date: Mon, 22 May 2017 12:49:57 -0300 Subject: [PATCH] Pequeno fix --- classes/GDE/Usuario.inc.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/classes/GDE/Usuario.inc.php b/classes/GDE/Usuario.inc.php index f8f48cb..19bcf7e 100644 --- a/classes/GDE/Usuario.inc.php +++ b/classes/GDE/Usuario.inc.php @@ -1541,10 +1541,27 @@ public function Formata_Horario($Horario, $dia, $hora, $meu, Periodo $Periodo = if(!isset($Horario[$dia][$hora])) return "-"; $formatado = array(); + $i = 0; foreach($Horario[$dia][$hora] as $Oferecimento) { $strong_oferecimento = ((!$meu) && ($Periodo !== null) && ($this->Cursando($Oferecimento[0]))); $strong_sala = ((!$meu) && ($Periodo !== null) && ($this->Tem_Dimensao(array($Oferecimento[1], $dia, $hora), $Periodo))); - $formatado[] = (($links) ? "getID()."/\" title=\"".$Oferecimento[0]->getDisciplina()->getNome()."\">":null).(($strong_oferecimento)?"":null).$Oferecimento[0]->getSigla().$Oferecimento[0]->getTurma().(($strong_oferecimento)?"":null).(($links)?"":null).((($links) && ($Oferecimento[1] != '????'))?"/":"/").(($strong_sala)?"":null).$Oferecimento[1].(($strong_sala)?"":null).(($links)?"":null); + $formatado[$i] = ( + ($links) + ? "getID()."/\" title=\"".$Oferecimento[0]->getDisciplina()->getNome()."\">" + : null + ). + (($strong_oferecimento) ? "" : null). + $Oferecimento[0]->getSigla().$Oferecimento[0]->getTurma(). + (($strong_oferecimento) ? "" : null ). + (($links) ? "" : null); + if(!empty($Oferecimento[1])) + $formatado[$i] .= (($links) + ? "/" + : "/"). + (($strong_sala) ? "" : null). + $Oferecimento[1]. + (($strong_sala) ? "" : null). + (($links) ? "" : null); } return implode("
", $formatado); }