cvs: pear /Auth_HTTP Auth_HTTP.php
| From: | Rui Hirokawa | Date: | Thu, 23 Dec 2004 00:53:28 +0000 |
| Subject: | cvs: pear /Auth_HTTP Auth_HTTP.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-27772@lists.php.net to get a copy of this message | ||
hirokawa Wed Dec 22 19:53:28 2004 EDT
Modified files:
/pear/Auth_HTTP Auth_HTTP.php
Log:
fixed #2380
http://cvs.php.net/diff.php/pear/Auth_HTTP/Auth_HTTP.php?r1=1.21&r2=1.22&ty=u
Index: pear/Auth_HTTP/Auth_HTTP.php
diff -u pear/Auth_HTTP/Auth_HTTP.php:1.21 pear/Auth_HTTP/Auth_HTTP.php:1.22
--- pear/Auth_HTTP/Auth_HTTP.php:1.21 Sun Aug 22 09:03:48 2004
+++ pear/Auth_HTTP/Auth_HTTP.php Wed Dec 22 19:53:27 2004
@@ -18,7 +18,7 @@
// | David Costa <gurugeek@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Auth_HTTP.php,v 1.21 2004/08/22 13:03:48 hirokawa Exp $
+// $Id: Auth_HTTP.php,v 1.22 2004/12/23 00:53:27 hirokawa Exp $
//
require_once "Auth/Auth.php";
@@ -49,7 +49,7 @@
* @author David Costa <gurugeek@php.net>
* @package Auth_HTTP
* @extends Auth
- * @version $Revision: 1.21 $
+ * @version $Revision: 1.22 $
*/
class Auth_HTTP extends Auth
{
@@ -188,15 +188,17 @@
$this->authType = strtolower($options['authType']);
}
- foreach($options as $key => $value) {
- if (array_key_exists( $key, $this->options)) {
- $this->options[$key] = $value;
- }
- }
+ if (is_array($options)) {
+ foreach($options as $key => $value) {
+ if (array_key_exists( $key, $this->options)) {
+ $this->options[$key] = $value;
+ }
+ }
- if (!empty($this->options['opaquekey'])) {
- $this->opaque = md5($this->options['opaquekey']);
- }
+ if (!empty($this->options['opaquekey'])) {
+ $this->opaque = md5($this->options['opaquekey']);
+ }
+ }
$this->Auth($storageDriver, $options);
}