]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14187 "Improve tablelib - improve api and add functionality to download table...
authorjamiesensei <jamiesensei>
Sat, 14 Jun 2008 13:18:14 +0000 (13:18 +0000)
committerjamiesensei <jamiesensei>
Sat, 14 Jun 2008 13:18:14 +0000 (13:18 +0000)
lib/tablelib.php

index 7af2fc89a6b8b48e00579d2dd5464e30c47dcfce..dadf87074d59e64242cd8589a3847d79cf168d7b 100644 (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];