src/Mpdf.php
function GetFirstBlockFill()
	{
		// Returns the first blocklevel that uses a bgcolor fill
		$startfill = 0;
		for ($i = 1; $i <= $this->blklvl; $i++) {
			if ($this->blk[$i]['bgcolor'] || $this->blk[$i]['border_left']['w'] || $this->blk[$i]['border_right']['w'] || $this->blk[$i]['border_top']['w'] || $this->blk[$i]['border_bottom']['w']) {
				$startfill = $i;
				break;
			}
		}
		return $startfill;
	}
function GetFirstBlockFill()
	{
		// Returns the first blocklevel that uses a bgcolor fill
		$startfill = 0;
		for ($i = 1; $i <= $this->blklvl; $i++) {
			if ($this->blk[$i]['bgcolor'] || $this->blk[$i]['border_left']['w'] || $this->blk[$i]['border_right']['w'] || $this->blk[$i]['border_top']['w'] || $this->blk[$i]['border_bottom']['w']) {
				$startfill = $i;
				break;
			}
		}
		return $startfill;
	}
function GetFirstBlockFill ( ) { // Returns the first blocklevel that uses a bgcolor fill $ startfill = 0 ; for ( $ i = 1 ; $ i <= $ this -> blklvl ; $ i ++ ) { if ( $ this -> blk [ $ i ] [ 'bgcolor' ] || $ this -> blk [ $ i ] [ 'border_left' ] [ 'w' ] || $ this -> blk [ $ i ] [ 'border_right' ] [ 'w' ] || $ this -> blk [ $ i ] [ 'border_top' ] [ 'w' ] || $ this -> blk [ $ i ] [ 'border_bottom' ] [ 'w' ] ) { $ startfill = $ i ; break ; } } return $ startfill ; }
Used when ColActive for tables - updated to return first block with background fill OR borders
Used when ColActive for tables - updated to return first block with background fill OR borders