summaryrefslogtreecommitdiffstats
path: root/Auth/Yadis
diff options
context:
space:
mode:
authortailor <cygnus@cprogrammer.org>2007-11-13 00:25:38 +0000
committertailor <cygnus@cprogrammer.org>2007-11-13 00:25:38 +0000
commite979de3435ac4bafca4ad0d9ce90723bdb9b23f9 (patch)
treed2e3e2798d19dd5c6caa4948d645b32466a0818f /Auth/Yadis
parent949c04cc83a6cc94182e99265fe18e7da2845531 (diff)
downloadphp-openid-e979de3435ac4bafca4ad0d9ce90723bdb9b23f9.zip
php-openid-e979de3435ac4bafca4ad0d9ce90723bdb9b23f9.tar.gz
php-openid-e979de3435ac4bafca4ad0d9ce90723bdb9b23f9.tar.bz2
[project @ Make Auth_Yadis_identifierScheme handle an empty string]
Diffstat (limited to 'Auth/Yadis')
-rw-r--r--Auth/Yadis/XRI.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Auth/Yadis/XRI.php b/Auth/Yadis/XRI.php
index d9d0726..da9ece3 100644
--- a/Auth/Yadis/XRI.php
+++ b/Auth/Yadis/XRI.php
@@ -43,7 +43,8 @@ function Auth_Yadis_getXrefRE()
function Auth_Yadis_identifierScheme($identifier)
{
if (Auth_Yadis_startswith($identifier, 'xri://') ||
- (in_array($identifier[0], Auth_Yadis_getXRIAuthorities()))) {
+ ($identifier &&
+ in_array($identifier[0], Auth_Yadis_getXRIAuthorities()))) {
return "XRI";
} else {
return "URI";