Commit 562196a9689fb02e8b30cd781a1b85e3cd903fd1

Authored by Wilmer
1 parent bfe863448e
Exists in master

corrige el error de que quiere calcular el tiempo para poder concursar cuando el…

… docente no ha realizado ni siquiera su oposicion
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/AppBundle/Controller/AppController.php
... ... @@ -112,7 +112,7 @@ class AppController extends Controller {
112 112 $tiempoTranscurrido = 0;
113 113 $suffix = "";
114 114  
115   - if ($escalafon->getidEscala()->getId() != 5){
  115 + if ($escalafon && $escalafon->getidEscala()->getId() != 5){
116 116 $escalafones = $this->getDoctrine()->getRepository("AppBundle:Escalafones")->findOneById($escalafon->getIdEscala()->getId() + 1); //tiempo para el proximo escalafon
117 117 if($escalafones){
118 118 //tiempo para el prox escalafon
... ...