From: jamiesensei Date: Sat, 14 Jun 2008 13:18:14 +0000 (+0000) Subject: MDL-14187 "Improve tablelib - improve api and add functionality to download table... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f36a330892a0b7236114ed986673fd4b668ca833;p=moodle.git MDL-14187 "Improve tablelib - improve api and add functionality to download table contents in a variety of formats - XLS, ODS and CSV" initialize array. --- diff --git a/lib/tablelib.php b/lib/tablelib.php index 7af2fc89a6..dadf87074d 100644 --- a/lib/tablelib.php +++ b/lib/tablelib.php @@ -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];