Fixing possible PHP warning

skala
Julio Montoya 12 years ago
parent 207e42a890
commit b6ae78cf94
  1. 9
      main/inc/lib/export.lib.inc.php

@ -185,8 +185,13 @@ class Export {
$column = 0; $column = 0;
foreach ($headers as $header) { foreach ($headers as $header) {
$table->setHeaderContents($row, $column, $header); $table->setHeaderContents($row, $column, $header);
$attributes = $header_attributes[$column]; $attributes = array();
$table->updateCellAttributes($row, $column, $attributes); if (isset($header_attributes) && isset($header_attributes[$column])) {
$attributes = $header_attributes[$column];
}
if (!empty($attributes)) {
$table->updateCellAttributes($row, $column, $attributes);
}
$column++; $column++;
} }
$row++; $row++;

Loading…
Cancel
Save