<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hi.<BR>
<BR>
Just attempting to use the OpenId library at version 2.0.0-rc2. <BR>
<BR>
I noticed problems with notifications from PHP concerning empty $_SESSION. Added this code to defend against it.<BR>
<BR>
Sorry that this email client seems to chew up all new lines and code formatting, but hope it makes some sense.<BR>
<BR>
Auth/Yadis/Manager.php Line 29:<BR>
...<BR>
/**<BR> * Get a key's value from the session.<BR> *<BR> * @param string $name The name of the key to retrieve.<BR> * @param string $default The optional value to return if the key<BR> * is not found in the session.<BR> * @return string $result The key's value in the session or<BR> * $default if it isn't found.<BR> */<BR> function get($name, $default=null)<BR> {<BR> if ( (isset( $_SESSION )) && (is_array( $_SESSION ) ) )<BR> {<BR> if (array_key_exists($name, $_SESSION)) {<BR> return $_SESSION[$name];<BR> } else {<BR> return $default;<BR> }<BR> }<BR> else<BR> {<BR> return $default;<BR> }<BR>
}<BR>
...<BR><br /><hr />Try Live.com - your fast, personalised homepage with all the things you care about in one place. <a href='http://www.live.com/?mkt=en-gb' target='_new'>in one place.</a></body>
</html>