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:
jamiesensei
2008-06-14 13:18:14 +00:00
parent 623014b0d7
commit f36a330892
+1
View File
@@ -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];