From 5de12fa4d3f2a63a974b857cb6e86b888a92829c Mon Sep 17 00:00:00 2001 From: Andjelko Horvat <comel@vingd.com> Date: Wed, 4 Sep 2013 11:18:34 +0000 Subject: [PATCH] sspmod_consent_Consent_Store_Cookie::_setConsentCookie(): fix assert. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3270 44740490-163a-0410-bde0-09ae8108e29a --- modules/consent/lib/Consent/Store/Cookie.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/consent/lib/Consent/Store/Cookie.php b/modules/consent/lib/Consent/Store/Cookie.php index ba59e5c4d..3e80a56e8 100644 --- a/modules/consent/lib/Consent/Store/Cookie.php +++ b/modules/consent/lib/Consent/Store/Cookie.php @@ -264,7 +264,7 @@ class sspmod_consent_Consent_Store_Cookie extends sspmod_consent_Store private function _setConsentCookie($name, $value) { assert('is_string($name)'); - assert('is_string($value)'); + assert('is_string($value) || is_null($value)'); $globalConfig = SimpleSAML_Configuration::getInstance(); $params = array( -- GitLab