From 0a15415458ca7f28fa8ea4dc293964d9ad1e5c9f Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Mon, 8 Sep 2008 13:47:39 +0000 Subject: [PATCH] MDL-14591 - fix up call to exporter->get_base_filearea --- portfolio/type/download/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portfolio/type/download/lib.php b/portfolio/type/download/lib.php index 116c3ec3e3..244aae85e3 100644 --- a/portfolio/type/download/lib.php +++ b/portfolio/type/download/lib.php @@ -25,7 +25,7 @@ class portfolio_plugin_download extends portfolio_plugin_pull_base { $zipper = new zip_packer(); $filename = 'portfolio-export.zip'; - list ($contextid, $filearea, $itemid) = $this->get('exporter')->get_base_filearea(); + list ($contextid, $filearea, $itemid) = array_values($this->get('exporter')->get_base_filearea()); if ($newfile = $zipper->archive_to_storage($files, $contextid, $filearea, $itemid, '/final/', $filename, $this->user->id)) { $this->set('file', $newfile); return true; -- 2.39.5