Revision: 2271
Author: olavmrk
Date: Mon Apr 26 23:04:00 2010
Log: SAML2/LogoutRequest: Fix incorrect assertion on setSessionIndex().
The $sesionIndex parameter is allowed to be NULL here.
http://code.google.com/p/simplesamlphp/source/detail?r=2271
Modified:
/trunk/lib/SAML2/LogoutRequest.php
=======================================
--- /trunk/lib/SAML2/LogoutRequest.php Fri Mar 5 07:12:21 2010
+++ /trunk/lib/SAML2/LogoutRequest.php Mon Apr 26 23:04:00 2010
@@ -91,7 +91,7 @@
* @param string|NULL $sessionIndex The sesion index of the session that
should be terminated.
*/
public function setSessionIndex($sessionIndex) {
- assert('is_string($sessionIndex)');
+ assert('is_string($sessionIndex) || is_null($sessionIndex)');
$this->sessionIndex = $sessionIndex;
}
--
You received this message because you are subscribed to the Google Groups
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simplesamlphp-commits?hl=en.