X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/93e324618014f9fa9279e141d39a7f44b091de9e..15c32314cf6a6eadf7d2d24ff2827c3db9bd8950:/lib/MECON/Agente.php?ds=sidebyside diff --git a/lib/MECON/Agente.php b/lib/MECON/Agente.php index d763451..fff7cbd 100644 --- a/lib/MECON/Agente.php +++ b/lib/MECON/Agente.php @@ -65,7 +65,7 @@ class Agente { */ function getTipo() // ~X2C { - if(is_null($this->datos['tipo_agente'])) + if(!in_array('tipo_agente',array_keys($this->datos))) return 'CON '.$this->datos['marco_legal']; else return $this->datos['tipo_agente'];