#18940457: E-Mail 및 URL 형식 확장 변수 필드에 내용이 없을 경우에도 링크를 생성하여 스크린 리더 사용자 등이 혼동할 수 있는 문제 수정.

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7507 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ysnglee2000 2010-06-11 05:12:21 +00:00
parent 5e633ffe4a
commit c24ae8b506

View file

@ -141,9 +141,9 @@
$value = $this->_getTypeValue($this->type, $this->value);
switch($this->type) {
case 'homepage' :
return sprintf('<a href="%s" onclick="window.open(this.href); return false;">%s</a>', $value, $value);
return ($value)?sprintf('<a href="%s" onclick="window.open(this.href); return false;">%s</a>', $value, $value):"";
case 'email_address' :
return sprintf('<a href="mailto:%s">%s</a>', $value, $value);
return ($value)?sprintf('<a href="mailto:%s">%s</a>', $value, $value):"";
break;
case 'tel' :
return sprintf('%s - %s - %s', $value[0],$value[1],$value[2]);