Completed
Push — master ( f4e97d...0ed595 )
by Jean-Christophe
03:13
created
Ajax/semantic/widgets/datatable/DataTable.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,8 +68,9 @@  discard block
 block discarded – undo
68 68
 
69 69
 		$table->setRowCount(0, \sizeof($captions));
70 70
 		$table->setHeaderValues($captions);
71
-		if(isset($this->_compileParts))
72
-			$table->setCompileParts($this->_compileParts);
71
+		if(isset($this->_compileParts)) {
72
+					$table->setCompileParts($this->_compileParts);
73
+		}
73 74
 		if(isset($this->_searchField) && isset($js)){
74 75
 			$this->_searchField->postOn("change", $this->_urls,"{'s':$(this).val()}","-#".$this->identifier." tbody",["preventDefault"=>false]);
75 76
 		}
@@ -275,8 +276,9 @@  discard block
 block discarded – undo
275 276
 	private function getDefaultButton($icon,$class=null){
276 277
 		$bt=$this->getFieldButton("");
277 278
 		$bt->asIcon($icon);
278
-		if(isset($class))
279
-			$bt->addToProperty("class", $class);
279
+		if(isset($class)) {
280
+					$bt->addToProperty("class", $class);
281
+		}
280 282
 		return $bt;
281 283
 	}
282 284
 
Please login to merge, or discard this patch.