X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/93e324618014f9fa9279e141d39a7f44b091de9e..b9f89765c404ec983b830e3bacc0d0591764e9ad:/lib/MECON/Agente.php 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'];