MDL-14187 "Improve tablelib - improve api and add functionality to download table contents in a variety of formats - XLS, ODS and CSV" initialize array.
This commit is contained in:
@@ -800,6 +800,7 @@ class flexible_table {
|
||||
if (is_object($rowwithkeys)){
|
||||
$rowwithkeys = (array)$rowwithkeys;
|
||||
}
|
||||
$row = array();
|
||||
foreach (array_keys($this->columns) as $column){
|
||||
if (isset($rowwithkeys[$column])){
|
||||
$row [] = $rowwithkeys[$column];
|
||||
|
||||
Reference in New Issue
Block a user