This code:

if (count($cells[$j]>$num_cols)) {
$num_cols=count($cells[$j]);
}

should be:

if (count($cells[$j])>$num_cols) {
$num_cols=count($cells[$j]);
}

(i.e. position of close-bracket in the condition)

Comments

webgeer’s picture

Status: Needs review » Closed (fixed)

Thank you very much.

That should be fixed now.