diff options
Diffstat (limited to 'framework/Web/UI/WebControls')
-rw-r--r-- | framework/Web/UI/WebControls/THtmlElement.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/framework/Web/UI/WebControls/THtmlElement.php b/framework/Web/UI/WebControls/THtmlElement.php index 96fd1a5a..9dc24aeb 100644 --- a/framework/Web/UI/WebControls/THtmlElement.php +++ b/framework/Web/UI/WebControls/THtmlElement.php @@ -39,11 +39,7 @@ class THtmlElement extends TWebControl */
public function getTagName()
{
- if($this->_tagName !== null) return $this->_tagName;
-
- $this->_tagName = $this->getDefaultTagName();
-
- return $this->_tagName;
+ return ($this->_tagName !== null) ? $this->_tagName : ($this->_tagName = $this->getDefaultTagName());
}
/**
|