Completed
Push — master ( c8eebb...4924e4 )
by Jean-Christophe
02:55
created
Ajax/semantic/html/modules/HtmlTab.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,14 +73,16 @@
 block discarded – undo
73 73
 	 * @see BaseHtml::run()
74 74
 	 */
75 75
 	public function run(JsUtils $js) {
76
-		if(isset($this->_bsComponent)===false)
77
-			$this->_bsComponent=$js->semantic()->tab("#".$this->identifier." .item",$this->params);
76
+		if(isset($this->_bsComponent)===false) {
77
+					$this->_bsComponent=$js->semantic()->tab("#".$this->identifier." .item",$this->params);
78
+		}
78 79
 			$this->addEventsOnRun($js);
79 80
 			return $this->_bsComponent;
80 81
 	}
81 82
 	public function compile(JsUtils $js=NULL, &$view=NULL) {
82
-		if($this->content["menu"]->count()>0)
83
-			$this->activate(0);
83
+		if($this->content["menu"]->count()>0) {
84
+					$this->activate(0);
85
+		}
84 86
 		return parent::compile($js,$view);
85 87
 	}
86 88
 }
87 89
\ No newline at end of file
Please login to merge, or discard this patch.