mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-23 05:41:02 +01:00
fix for bug #816612: a spaned first row leads to less columns on reading a tmpl
This commit is contained in:
parent
bfb6f3b494
commit
0d40fed412
@ -177,7 +177,15 @@
|
||||
function set_rows_cols()
|
||||
{
|
||||
$this->rows = count($this->data) - 1;
|
||||
$this->cols = count($this->data[1]); // 1 = first row, not 0
|
||||
$this->cols = 0;
|
||||
for($r = 1; $r <= $this->rows; ++$r)
|
||||
{
|
||||
$cols = count($this->data[$r]);
|
||||
if ($this->cols < $cols)
|
||||
{
|
||||
$this->cols = $cols;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user