From b87f13510b9f5844417a7ffa13463e0c709c3e4a Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 16 Dec 2010 09:46:25 -0800 Subject: [PATCH] validate_config_options() needs to handle Pieform object for $values gracefully Signed-off-by: Rich Trott --- htdocs/auth/saml/lib.php | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/htdocs/auth/saml/lib.php b/htdocs/auth/saml/lib.php index 23cf776..7407459 100644 --- a/htdocs/auth/saml/lib.php +++ b/htdocs/auth/saml/lib.php @@ -457,7 +457,11 @@ class PluginAuthSaml extends PluginAuth { public static function validate_config_options($values, $form) { - + if ($values instanceof Pieform) { + $tmp = $form; + $form = $values; + $values = $tmp; + } // fix problems with config validation interface incorrect between site/institution if (isset($values['authglobalconfig'])) { // SimpleSAMLPHP lib directory must have right things -- 1.7.1.1