]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15760 - fix teeny notice-causing bug in box.net portfolio plugin
authormjollnir_ <mjollnir_>
Thu, 11 Sep 2008 13:38:22 +0000 (13:38 +0000)
committermjollnir_ <mjollnir_>
Thu, 11 Sep 2008 13:38:22 +0000 (13:38 +0000)
portfolio/type/boxnet/lib.php

index b4cf4e52356f6eaea57ac8528ccf29eb996932ac..94ae3ce179ac12b61137e5832476483fee40c15b 100644 (file)
@@ -20,7 +20,7 @@ class portfolio_plugin_boxnet extends portfolio_plugin_push_base {
             if (!$created = $this->boxclient->createFolder($newfolder, array('share' => 0))) {
                 throw new portfolio_plugin_exception('foldercreatefailed', 'portfolio_boxnet');
             }
-            $this->folders[$created['folder_id']] = $created['folder_type'];
+            $this->folders[$created['folder_id']] = $created['folder_name'];
             $this->set_export_config(array('folder' => $created['folder_id']));
         }
         return true; // don't do anything else for this plugin, we want to send all files as they are.
@@ -189,8 +189,6 @@ class portfolio_plugin_boxnet extends portfolio_plugin_push_base {
         if (!is_array($this->accounttree)) {
             return false;
         }
-
-
     }
 
     private function get_folder_list() {