import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
* @subpackage Zend_OpenId_Provider
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: File.php 8456 2008-02-29 11:01:12Z dmitry $
|
||||
* @version $Id: File.php 13522 2009-01-06 16:35:55Z thomas $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -53,7 +53,7 @@ class Zend_OpenId_Provider_Storage_File extends Zend_OpenId_Provider_Storage
|
||||
*/
|
||||
public function __construct($dir = null)
|
||||
{
|
||||
if (is_null($dir)) {
|
||||
if ($dir === null) {
|
||||
$tmp = getenv('TMP');
|
||||
if (empty($tmp)) {
|
||||
$tmp = getenv('TEMP');
|
||||
@ -378,7 +378,7 @@ class Zend_OpenId_Provider_Storage_File extends Zend_OpenId_Provider_Storage
|
||||
if (!empty($data)) {
|
||||
list($storedId, $storedPassword, $sites) = unserialize($data);
|
||||
if ($id === $storedId) {
|
||||
if (is_null($trusted)) {
|
||||
if ($trusted === null) {
|
||||
unset($sites[$site]);
|
||||
} else {
|
||||
$sites[$site] = $trusted;
|
||||
|
Reference in New Issue
Block a user