From: mjollnir_ Date: Wed, 20 Aug 2008 09:31:31 +0000 (+0000) Subject: MDL-16134 - fixing regression introduced by conversion to exceptions X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=23cbde0a14a4e13807b62b4ee6ba0c3286514a79;p=moodle.git MDL-16134 - fixing regression introduced by conversion to exceptions --- diff --git a/lib/portfoliolib.php b/lib/portfoliolib.php index c3f6e3dfcf..deada132c5 100644 --- a/lib/portfoliolib.php +++ b/lib/portfoliolib.php @@ -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);