<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hi.<BR>
&nbsp;<BR>
Just attempting to use the OpenId library at version 2.0.0-rc2. <BR>
&nbsp;<BR>
I&nbsp;noticed problems with notifications from PHP concerning empty $_SESSION. Added this code to defend against it.<BR>
&nbsp;<BR>
Sorry that this email client seems to chew up all new lines and code formatting, but hope it makes some sense.<BR>
&nbsp;<BR>
Auth/Yadis/Manager.php Line 29:<BR>
...<BR>
&nbsp;/**<BR>&nbsp;&nbsp;&nbsp;&nbsp; * Get a key's value from the session.<BR>&nbsp;&nbsp;&nbsp;&nbsp; *<BR>&nbsp;&nbsp;&nbsp;&nbsp; * @param string $name The name of the key to retrieve.<BR>&nbsp;&nbsp;&nbsp;&nbsp; * @param string $default The optional value to return if the key<BR>&nbsp;&nbsp;&nbsp;&nbsp; * is not found in the session.<BR>&nbsp;&nbsp;&nbsp;&nbsp; * @return string $result The key's value in the session or<BR>&nbsp;&nbsp;&nbsp;&nbsp; * $default if it isn't found.<BR>&nbsp;&nbsp;&nbsp;&nbsp; */<BR>&nbsp;&nbsp;&nbsp; function get($name, $default=null)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( (isset( $_SESSION )) &amp;&amp; (is_array( $_SESSION ) ) )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (array_key_exists($name, $_SESSION)) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return $_SESSION[$name];<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return $default;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return $default;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>
&nbsp;&nbsp;&nbsp; }<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>