diff options
-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 +?> |