From 23292e69d329e07bba5b0cf1f15c768c1303f59e Mon Sep 17 00:00:00 2001 From: javalizard <> Date: Sun, 18 Apr 2010 14:12:43 +0000 Subject: smaller code for THtmlElement --- framework/Web/UI/WebControls/THtmlElement.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'framework') 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()); } /** -- cgit v1.2.3