public function guardarFallas()
 {
     try {
         if ($this->verificarSession()) {
             $arreglo = isset($_POST['fallas']) ? $_POST['fallas'] : NULL;
             $idMateria = isset($_POST['idMateria']) ? $_POST['idMateria'] : NULL;
             $fallas = json_decode($arreglo);
             $docente = new Docente();
             foreach ($fallas as $falla) {
                 $docente->actualizarFalla($falla[0], $idMateria, $falla[1], $falla[2], $falla[3], $falla[4]);
             }
             echo json_encode(1);
         }
     } catch (Exception $exc) {
         echo $exc->getTraceAsString();
     }
 }