- $aux = $this->datos['cuil'];
- $aux = preg_replace('/(\d{2})(\d*)(\d{1})/','$1-$2-$3',$aux);
- return $aux;
+ if(in_array('cuil',$this->datos))
+ {
+ $aux = $this->datos['cuil'];
+ $aux = preg_replace('/(\d{2})(\d*)(\d{1})/','$1-$2-$3',$aux);
+ return $aux;
+ }else
+ {
+ return false;
+ }