]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16134 - fixing regression introduced by conversion to exceptions
authormjollnir_ <mjollnir_>
Wed, 20 Aug 2008 09:31:31 +0000 (09:31 +0000)
committermjollnir_ <mjollnir_>
Wed, 20 Aug 2008 09:31:31 +0000 (09:31 +0000)
lib/portfoliolib.php

index c3f6e3dfcf1f53d36371b66103b8bff4b7aca038..deada132c5bf9380125eae03523e1701f5755768 100644 (file)
@@ -1379,9 +1379,10 @@ abstract class portfolio_plugin_base {
         global $DB;
         foreach ($config as $key => $value) {
             // try set it in $this first
-            if ($this->set($key, $value)) {
+            try {
+                $this->set($key, $value);
                 continue;
-            }
+            } catch (portfolio_exception $e) { }
             if (!in_array($key, $this->get_allowed_config())) {
                 $a = (object)array('property' => $key, 'class' => get_class($this));
                 throw new portfolio_export_exception($this->get('exporter'), 'invalidconfigproperty', 'portfolio', null, $a);