diff --git a/nur_src/v/bs3/vc/CTable.php b/nur_src/v/bs3/vc/CTable.php index 226c2f9..1ff1716 100644 --- a/nur_src/v/bs3/vc/CTable.php +++ b/nur_src/v/bs3/vc/CTable.php @@ -633,14 +633,15 @@ class CTable extends ComponentPrintable implements IParametrable { /** @var string|int clé de la colonne courante */ protected $col; - function colTd($value): array { + function colTd($value): ?array { $vs = $this->col($value); if ($this->colCtx !== null) { $vs = func::_call($this->colCtx, [$vs, $value, $this->col, $this->index, $this->row, $this->rawRow]); + if ($vs === false) return null; } else { $result = A::get($this->results, $this->col); $valid = $result === null || $result["valid"]; - $vs= [ + $vs = [ "class" => ["danger" => !$valid], $vs, ];