From 258f8491146450d6e1a594068881f704fbe5755d Mon Sep 17 00:00:00 2001 From: Wilmer Date: Tue, 9 May 2017 11:01:27 -0400 Subject: [PATCH] =?UTF-8?q?a=C3=B1ade=20validaci=C3=B3n=20cuando=20un=20do?= =?UTF-8?q?cente=20llega=20al=20m=C3=A1ximo=20escalaf=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AppBundle/Controller/AppController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/AppBundle/Controller/AppController.php b/src/AppBundle/Controller/AppController.php index 51f6167..840787e 100644 --- a/src/AppBundle/Controller/AppController.php +++ b/src/AppBundle/Controller/AppController.php @@ -107,9 +107,10 @@ class AppController extends Controller { array('id' => 'DESC') ); - $tiempoTranscurrido = -1; + $tiempoTranscurrido = 0; $suffix = ""; - if ($escalafon){ + + if ($escalafon->getidEscala()->getId() != 5){ $escalafones = $this->getDoctrine()->getRepository("AppBundle:Escalafones")->findOneById($escalafon->getIdEscala()->getId() + 1); //tiempo para el proximo escalafon if($escalafones){ //tiempo para el prox escalafon -- 2.0.0