diff options
author | Anthony BRETAUDEAU <abretaud@reinette.irisa.fr> | 2010-04-07 22:01:04 +0800 |
---|---|---|
committer | lillialexis <lillialexis@gmail.com> | 2010-04-29 04:38:31 +0800 |
commit | 7282a89e95ebeaffe259ae0f392fcb14fa0d9423 (patch) | |
tree | bbd9f00c82bfdedbd363ab77bc2c995ed545ce9c | |
parent | cb925a2977ef861b5b5313b320aeb92eb7cdb205 (diff) | |
download | php-openid-7282a89e95ebeaffe259ae0f392fcb14fa0d9423.zip php-openid-7282a89e95ebeaffe259ae0f392fcb14fa0d9423.tar.gz php-openid-7282a89e95ebeaffe259ae0f392fcb14fa0d9423.tar.bz2 |
Don't throw error when when received arg count is unlimited
-rw-r--r-- | Auth/OpenID/AX.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Auth/OpenID/AX.php b/Auth/OpenID/AX.php index 62cdee4..7370715 100644 --- a/Auth/OpenID/AX.php +++ b/Auth/OpenID/AX.php @@ -652,7 +652,7 @@ class Auth_OpenID_AX_KeyValueMessage extends Auth_OpenID_AX_Message { foreach ($aliases->iteritems() as $pair) { list($type_uri, $alias) = $pair; - if (array_key_exists('count.' . $alias, $ax_args)) { + if (array_key_exists('count.' . $alias, $ax_args) && ($ax_args['count.' . $alias] !== Auth_OpenID_AX_UNLIMITED_VALUES)) { $count_key = 'count.' . $alias; $count_s = $ax_args[$count_key]; |