diff options
author | tailor <cygnus@cprogrammer.org> | 2007-03-12 18:31:06 +0000 |
---|---|---|
committer | tailor <cygnus@cprogrammer.org> | 2007-03-12 18:31:06 +0000 |
commit | 8e54b4b523b4cce84a69a28cd60d4e6f4bad8486 (patch) | |
tree | 7bc755496b4e5461a9a17102e0291810e31f1518 /examples/detect.php | |
parent | 4dec096043b2a4830f8db5ff2d2807fc9f130a0c (diff) | |
download | php-openid-8e54b4b523b4cce84a69a28cd60d4e6f4bad8486.zip php-openid-8e54b4b523b4cce84a69a28cd60d4e6f4bad8486.tar.gz php-openid-8e54b4b523b4cce84a69a28cd60d4e6f4bad8486.tar.bz2 |
[project @ Whitespace]
Diffstat (limited to 'examples/detect.php')
-rw-r--r-- | examples/detect.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/detect.php b/examples/detect.php index 0598681..f346f6a 100644 --- a/examples/detect.php +++ b/examples/detect.php @@ -405,11 +405,13 @@ function detect_fetcher($r, &$out) $out .= $r->p('See ' . $lnk . ' about enabling the libcurl support ' . 'for PHP.'); } + $ok = true; $fetcher = Services_Yadis_Yadis::getHTTPFetcher(); $fetch_url = 'http://www.openidenabled.com/resources/php-fetch-test'; $expected_url = $fetch_url . '.txt'; $result = $fetcher->get($fetch_url); + if (isset($result)) { $parts = array('An HTTP request was completed.'); // list ($code, $url, $data) = $result; @@ -489,4 +491,4 @@ if (!$_include) { $out .= $body . $r->end(); print $out; -?>
\ No newline at end of file +?> |