Skip to content

Commit 94fae6b

Browse files
committed
Update HtmlTableContent.php
1 parent a3f400e commit 94fae6b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Ajax/semantic/html/content/table/HtmlTableContent.php

+10-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
*
1515
*/
1616
class HtmlTableContent extends HtmlSemCollection {
17-
protected $_focusable=false;
17+
18+
protected $_focusable = false;
1819

1920
protected $_tdTagNames = [
2021
"thead" => "th",
@@ -70,7 +71,7 @@ protected function createItem($value) {
7071
$count = $this->count();
7172
$tr = new HtmlTR("");
7273
$tr->setContainer($this, $count);
73-
if($this->_focusable) {
74+
if ($this->_focusable) {
7475
$tr->setProperty('tabindex', $count);
7576
}
7677
$tr->setTdTagName($this->_tdTagNames[$this->tagName]);
@@ -256,8 +257,12 @@ private function colAlign($colIndex, $function) {
256257
$count = $this->count();
257258
for ($i = 0; $i < $count; $i ++) {
258259
$index = $this->content[$i]->getColPosition($colIndex);
259-
if ($index !== NULL)
260-
$this->getCell($i, $index)->$function();
260+
if ($index !== NULL) {
261+
$cell = $this->getCell($i, $index);
262+
if ($cell != NULL) {
263+
$cell->$function();
264+
}
265+
}
261266
}
262267
return $this;
263268
}
@@ -487,6 +492,7 @@ public function _setMerged($value) {
487492
}
488493

489494
/**
495+
*
490496
* @param bool $focusable
491497
*/
492498
public function setFocusable(bool $focusable): void {

0 commit comments

Comments
 (0)